how about <cffile action="read" file="myFile.txt" variable="myFile"> <cfset firstRow = listFirst(myFile, Chr(10))>
That will give you the first row only thing is you have to load the whole file into memory to do it Steve -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Taco Fleur (@DataBroker) Sent: Monday, July 25, 2005 1:46 PM To: CFAussie Mailing List Subject: [cfaussie] RE: Retrieving a portion of a text file I think you will have to use some Java Classes to do that, CF does not provide this. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Gara Sent: Monday, 25 July 2005 1:39 PM To: CFAussie Mailing List Subject: [cfaussie] Retrieving a portion of a text file Anyone know of a way to retrieve a portion of a text file without loading the whole file into memory e.g. CFFILE action="read"? I potentially have a very large delimited file but I only want to read the first row it contains. Regards Martin Gara BEARCOM Pty Limited --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
