Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove empty lines
Message
From
18/09/2010 05:25:03
 
 
To
18/09/2010 03:16:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01481722
Message ID:
01481729
Views:
55
lcErg = ""
for lnRun to alines(laLines, FileToStr("c:\mydir\m.txt"))
    If !Empty(laLines[m.lnRun])
       lcErg = m.lcErg + laLines[m.lnRun]
    endif
next
= StrToFile(m.lcErg, "c:\mydir\m_Clean.txt")
Overwriting with the same name might get you into other troubles,
so I prefer to keep original file unchanged.

HTH

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform