How To Control The Size Of A File??
Posted on 2004-08-05
I have a consoleApp written in VB .Net, that writes data to a text file. What I want to accomplish is this - prior to data being written to the text file - if the file.length is over 4.5MB then we deleted 500 lines from the beginning of the file.
Could someone please show me how to trim or delete 500 lines of data from the beginning of the file in this scenario.