[futurebasic] Re: [FB] Input #1

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2004 : Group Archive : Group : All Groups

From: Brian Stevens <brilor@...>
Date: Sat, 21 Feb 2004 16:55:10 -0700
On Feb 20, 2004, at 7:17 PM, Ken Kniel wrote:

> Couple questions.
>
> Is the there a maximum amount of characters I can use an Input #1 
> statement for  when reading in a text file?

According to the manual the vars for input # are defined  as "var...".  
the elipsis means the vars may be repeated "an indefinite number of 
times" (see introduction in reference manual)



>   I am reading in a comma delineated file.

that should be no problem.



>  I read somewhere that the Line Input # is limited to 255 characters 
> is this the same for an Input # statement with variables separated by 
> a comma?

Line input reads into a string variable. Strings ARE limited to 255 
characters, so that is the reason for the limitation.


>
> Also if I want to to break up the input line can't I put a semi-colon 
> at the end.

No, you are probably thinking of the print statement.  If you just want 
to break up an input into several lines, use OPTION-L(looks like a L 
laying backwards and  on its side)  at the end of the line and the 
editor will jump to the next line. The compiler reads this as one input 
statement. It would look something like:

input #1, a$,b$,c$,¬
d$,e$,f$,g$,h$,i$,¬
j$,k$,l$


>
> Input #1, A$,B$,C$;
> Input #1 D$,E$
>
> the same as
>
> Input #1, A$,B$,C$, D$,E$
>
> I am getting an error on the first statement that is shown in two 
> lines.
>
> Thanks,
> Ken
>
> --
>