If I open a file like this: err = fn FSMakeFSSpec( system( _aplVRefNum ), system( _aplParID ), "HistoricData.txt", @inSpec ) OPEN "I",1, @inSpec How do I set a string variable to the contents of it so I can use it in a InStr function? Thanks, Tom On Apr 13, 2010, at 7:57 PM, Tom Russell wrote: > Yea that would probably work. > > Maybe something like: > > x = InStr(1,Input #1, Chr(9) > if x <> 0 then > do one thing > else > do something else > > Tom > > On Apr 13, 2010, at 7:49 PM, Spencer Ted wrote: > >> >> On 13 Apr, 2010, at 7:46 PM, Tom Russell wrote: >> >>> Does anyone have a sure fire way to tell whether the file you are opening is a tab delimited or single column? >> >> Read a few bytes and see if you encounter a chr$(9) (I think: whatever an ASCII Tab is)??? There shouldn't be any in a single column file. >> >> -- >> Ted Spencer >> >> -- >> To unsubscribe, send ANY message to: futurebasic-unsubscribe@... >> > > -- > To unsubscribe, send ANY message to: futurebasic-unsubscribe@... >