rmatthew Posted January 20, 2003 Posted January 20, 2003 I need to add lines to the text file at the bottom and pull (and delete) the line at the top. Is there a method for deleting lines in the top of a file? Quote
*Experts* Volte Posted January 20, 2003 *Experts* Posted January 20, 2003 I don't think there is. You should read in the entire file into an array of lines, set the first element in the array to "", and then add a few elements to the array (using Redim). Once you're done that, create a String from the string array usingmyString = String.Join(fileArray, ControlChars.CrLf).Trim()Then, write that back to the file. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.