Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text File Input

Status
Not open for further replies.

Jimgarry

MIS
May 16, 2000
112
I want to bring in a text file. the data is 80 characters long but the text file dosent contain line feeds so the data look like one very long string. How can I bring this data into a file?

Thanks in advance
Jim Garry
 
Ive tried the append and import from with the SDF it only brings in one record.

Is there some way of breaking up a text file?
 
How big is it?
>32000 chars?

You could import into a memo then use:

SET MEMOWIDTH TO nColumns
MEMLINES(MemoFieldName)
MLINE(MemoFieldName, nLineNumber [, nNumberOfCharacters])
etc...

good luck


-Pete
 
With APPEND FROM...SDF, did you play with the DELIMITED WITH gizmo?

Failing that, would it be practical to first pre-process the file by inserting a CR every 80 bytes?

Robert Bradley

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top