Jun 22, 2001 #1 toddman2k Programmer Joined Jun 6, 2001 Messages 9 Location US What is the fastest way to remove the first line from a text file? The only way I know of would be to open the file using the FileSystem Object and re-write all the lines (minus the first line) to a new file. There's got to be a better way, right?
What is the fastest way to remove the first line from a text file? The only way I know of would be to open the file using the FileSystem Object and re-write all the lines (minus the first line) to a new file. There's got to be a better way, right?
Jun 22, 2001 1 #2 lynn Instructor Joined May 9, 1999 Messages 6 Location US Your way is best! do it! Upvote 0 Downvote
Jun 22, 2001 Thread starter #3 toddman2k Programmer Joined Jun 6, 2001 Messages 9 Location US It works fine for small files, but it's taking TOO long for larger 2MB+ files... I was hoping there would be some way of doing it faster. Thanks! Upvote 0 Downvote
It works fine for small files, but it's taking TOO long for larger 2MB+ files... I was hoping there would be some way of doing it faster. Thanks!
Jun 22, 2001 1 #4 vasah20 Programmer Joined Feb 16, 2001 Messages 559 Location US The fastest way would be to read in the entire file, remove the first line, then replace the file. there is a trick to reading in big files though, and it's by using .Read and the file size. look here for more info: http://www.4guysfromrolla.com/webtech/010401-1.shtml this should help you out alot. good luck leo Upvote 0 Downvote
The fastest way would be to read in the entire file, remove the first line, then replace the file. there is a trick to reading in big files though, and it's by using .Read and the file size. look here for more info: http://www.4guysfromrolla.com/webtech/010401-1.shtml this should help you out alot. good luck leo