Bobby Heid
bheid at appdevgrp.com
Tue Jun 7 10:32:32 CDT 2005
Unless there's some sort of function that I do not know of, you need to: 1) open output file 2) open input file 3) read line of input file 4) read line of input file 5) write input line to output file 6) if not eof, goto #4. 7) close input file 8) close output file 9) delete input file 10) rename output file with the name of the old input file. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Garraway, Alun Sent: Tuesday, June 07, 2005 11:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] deleting first line of a text file? hallo, how do I delete the first line of a text file (whats the command)? or in other words Function DeleteFirstLine(strFile As String) Dim varFile As Variant varFile = FreeFile Open strFile For Input As #varFile (is open For Input correct?) what do I put in here?????????? End Function TIA :-) alun