Link to home
Start Free TrialLog in
Avatar of iflash
iflash

asked on

VB6: Remove lines with comma (Text manipulation)

Hi,

I need a VB 6 code that will remove all lines in a text file when there is no comma "," in that particular line. Hence all other lines with comma will be untouched.

Thank youi.
ASKER CERTIFIED SOLUTION
Avatar of Louis01
Louis01
Flag of South Africa image

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
If you wanted to keep a copy of the original file then you could change Louis01 code like this.

    FileCopy "c:\fileIn.txt", "c:\fileIn.bak"
    FileCopy "c:\fileOut.txt", "c:\fileIn.txt"
    Kill "c:\fileOut.txt"