Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remove empty lines
Message
De
18/09/2010 01:36:48
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01481722
Message ID:
01481726
Vues:
61
lcErg = ""
for lnRun to alines(laLines, FileToStr(...))
    If !Empty(laLines[m.lnRun])
       lcErg = m.lcErg + laLines[m.lnRun]
    endif
next
StrToFile(...)
not optimized for large files/many lines, just a one-shot...
If you need it in production, test writing directly into file instead of
concatenating a string. Works even if there are spaces/tabs in those "Empty" lines...


HTH

thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform