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 # statement ignore comma-delimiter

Status
Not open for further replies.

ultimatewilliam

Programmer
Oct 16, 2002
57
SG
hi there. After opening a text file, is it posible to ignore the comma-delimiter and assign the whole line to a single variable?

Input #1, MyString

where MyString should be "Smith, John 12335,12654,132Z"
what happens is that MyString will only have "Smith"

thank you for your time.
 
Look at the Line Input function rather than the Input # function


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top