Jun 22, 2001 #1 toddman2k Programmer Jun 6, 2001 9 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 Thread starter #3 toddman2k Programmer Jun 6, 2001 9 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 Feb 16, 2001 559 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