S
Smitha Patel
I am writing all my application activity to a log file(ASCII file).
1. How to append the data to a log file? I do not want to open the entire
file and add one line of log data to the file. My file will be in mega bytes
and it is a performance issue to load the entire file to memory and write
one line of data.
2. How to design the application in such a way that once the log file
reaches size of 'X', the log file will be written at the end of file and the
first entry is removed so that the log file will not grow beyond file size
of 'X'.. Any technique to achieve this?
VB.Net Desktop application and .Net Framework 1.1.
Thanks,
Patel
1. How to append the data to a log file? I do not want to open the entire
file and add one line of log data to the file. My file will be in mega bytes
and it is a performance issue to load the entire file to memory and write
one line of data.
2. How to design the application in such a way that once the log file
reaches size of 'X', the log file will be written at the end of file and the
first entry is removed so that the log file will not grow beyond file size
of 'X'.. Any technique to achieve this?
VB.Net Desktop application and .Net Framework 1.1.
Thanks,
Patel