I'm not sure what you mean by a file loop. This way you only hit the 20 records you want instead of looping through the whole file (we don't know how big this file is). This way you don't need the counting and logic it is built into the loop.
KEENDEV you out there?
BTW, cfsearching took a look...
Actually, you could use a listgetat() function to get the values at a certain position using the end of line delimiters. You could use a loop to iterate through the file.
<cffile action="read" file="C:\Myfile.txt" variable="FileVar">
<cfloop index="i" From="15" to="35">
<cfoutput>...
If your file has line breaks in it for each line you can use them as delimiters. You can loop through the lines/positions you want.
<cffile action="read" file="C:\Myfile.txt" variable="FileVar">
<cfloop index="lineVar" list="#FileVar#" delimiters="#chr(10)#">
<cfoutput>#lineVar#</cfoutput>
...
You might want to ask that over in the networking forum. That would need to be handled at the router level and beyond. Not at the (web)server level.
Good Luck
On IIS 5.0 we are using Windows Integrated auth. and NTFS to limit access to directories on the site.
When a particular user account (only this particular account) attempts to login it fails using the proper credentials. When you look in the ftp log the failed attempt has the username wrong. It...
Thanks! I'm trying to get away from having my whole site under SSL. I was planning to have a folder that had my login forms and action pages and just include them with <cfinclude> tags. I haven't been able to get it to work with the full HTTP or HTTPS address. Any suggestions?
Thanks again.
I need some help implementing SSL on my site. I understand that it is a good practice to encrypt login forms and validation processes to prevent passing usernames and passwords unprotected across the web.
What I’m looking for is how to implement it. I think I only need to have one directory...
I'll try that. I am just running this on a development PC. I am quering an Excel spreadsheet with 18K+ records and writing it to a DB. I am having to do some data checking to maintain integrity of the data. I'm kind of new at this. It seems to be taking a long time to process. I'm just pulling...
Hey guys, I have a very lengthy process I'm running through on one of my templates. IE times out before the I get conformation that the job has completed. It also kills the processing.
Any ideas on how to extend the timeout settings or work around it?
Thanks in advance!
Hey Guys, Thanks for the prompt response! Sorry mine hasn’t been as quick. I had another issue to solve first. The client I am working for had purchased this customized spreadsheet from someone else and it was password protected so I could not save it out as a csv. So I just copied out the data...
I have a client’s spreadsheet in Excel 2k. I am trying to import it into a new table in Access 2k. one of the fields in the spreadsheet is like a serial number. It contains letters, numbers, dashes, etc. They are generally between 5 and 20 characters in length. When I import it into Access some...
This is a site with a pretty good forum app. It looks like it will be pretty customizable. I have set it up, but that is about as far as I have gone with it. There are 2 things you will need to fix the app when you download it. 1) is a copy of the first use patch whis is a update to the...
Well call me Stupid! I tried everything we said earlier. None of it worked. I even recreated that field in the db. So, I went through the db and templates and changed the name of the db field from "desc" to "description". It worked. I really don't understand...
No, the field size in the db is set to 50 and the most I think I tried to update is about 33 char.
This is the longest enrty:
FunPack Camera Gravity Feed 32150
So far I have just been letting it update itself with out changes.
Oh, well I will try your suggestion later or tomorrow.
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.