Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Importing from a line delimited text file
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00094304
Message ID:
00094955
Views:
30
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform