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

Input command. How to alter separator char?

Status
Not open for further replies.

milton747

Programmer
Apr 21, 2005
133
US
(This was posted in DB Forum by mistake)

Hi,

When I use Input #FileNum x,y,z
the data from the file is dropped into vars x, y and z
BUT ONLY if the separator char is a comma.

Q: Does anyone know how to tell Basic to use a different seperator char? (eg: bar, or tab, or @-sign etc...)

Thanks
Milt.
 
You may consider the Line Input # instruction and the Split or InStr functions.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top