Log in

View Full Version : Replacing a line of text from a File using VBScript



codeexploiter
03-23-2006, 09:39 AM
Hi All,

How can we replace a line (based on some condition) from a constantly changing text file. In other words a text file is being used to store some data by an application that runs all the time, I want to create another script using VBScript using I want to read the changing text file and replace some lines based on some of my conditions.

Please share your thoughts in this issue.

Regards

Code Exploiter

Twey
03-23-2006, 10:00 AM
You can't, because the lines won't be in the same order when they're read as when they're written back. I suggest you use some form of socket (COM or UNIX sockets).