Link to home
Start Free TrialLog in
Avatar of atomicgs12
atomicgs12Flag for United States of America

asked on

How to limit size of data file

I have a log file that I am adding error messages to as my application runs along, e.g. logfile.AppendText. I would like help on how I can limit the size of the file and possible delete the first stored line, when the file has reached it's max limit, so the new AppendText will add the error to end of the file, so a FiFo file type system in Visual Basic.

Thanks
Avatar of kaufmed
kaufmed
Flag of United States of America image

how I can limit the size of the file
By file size, or number of lines?
Avatar of atomicgs12

ASKER

kaufmed: -
Your joking correct?

I'm looking for sample code.
ASKER CERTIFIED SOLUTION
Avatar of karthika_cts
karthika_cts

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Your joking correct?

Hmmm...  I don't remember putting a winking emoticon or a "j/k" in my post...  maybe I'm getting senile.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial