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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing a delimited ~ text file 1

Status
Not open for further replies.

x107951

Programmer
Jun 17, 2002
5
US
I have a delimited file and I need to read it and then get certain information from the file. The file could contain 1000's of lines.....

Need information urgently!!!!!
 
I guess what I was hoping you might clarify is "I don't know how to..."

def var field-1 as/like...
def var field-2 as/like...
...
def var field-x as/like...

input from filename.txt.
repeat:
import delimiter "~"
field-1
field-2
...
field-x
.

/* rest of program logic */

end.
input close.

Is a different question than "I get the following error message when I...". I hope this helps. Please follow up if you have other questions or run into problems.

--sshowers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top