Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Importing from a line delimited text file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00094304
Message ID:
00094955
Vues:
31
>And once I DID get a file delimited with "|". Nasty to handle.
>

I see it all the time, actually. DHL sends out their rate and route files using the bar delimiter, and it's a PITA the first time you encounter it. The solution we settled on was to use low-level file I/O to read the file a line at a time, and then parse the line into a vector using AT() to isolate token values. Once written, the solution works regardless of what the delimiting character is.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform