Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Clearing Log File content

Former Member
0 Likes
291

Hi everyone

I am using an OPEN DATASET to create a log file. It is feeded by 12 proxies.

What I want to do is that when the file reaches certain size in MB, the program generates a new file with the data of the old file, and then I want to clear the content of the old file without deleting the file from the server.

Because maybe some of the other processes are writing on it. And I need that data.

Do someone know how can I do this?

Or can some give me some light?

Thanks in advanced.

Emmanuel

1 REPLY 1
Read only

Former Member
0 Likes
247

Hi,

one approach you can follow, delete the file & create blank again with the same name.

Thanks,

Krishna..