| || |
Deleting data from Text file using filesystemobjec
Using the File system object I appended some data in text files, but my tool is set to run on all rows, so the same data got inserted some 100 times in each file, now how can I delete this data using the file system object ?
I using different ways of fso object by initally opening in readline mode then loop it until finds the desired text and there I am stuck, once it reaches how to replace that unwanted data with some space or delete that data ?
Re: Deleting data from Text file using filesystemobjec
Read the whole file using ReadAll and then us Replace method either using RegExp object or using the default Replace method. Fix the string and write it back to file