[futurebasic] A little help maybe

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2014 : Group Archive : Group : All Groups

From: Bill Tomlinson <billtomlinson@...>
Date: Sun, 08 Jun 2014 16:57:45 -0700
Hi Folks,
I was wondering if you could give me a little translation help from FB4 to FB5
I just want to open a fixedname text file that stashed in the same folder as my program. In FB4 I would write it as follows

Dim B$,volrefnum%
Window #1,B$, (1,25)-(600,300)
“line 1” : Open “I”,1, ”TestData.txt”, ,volrefnum
line input #1, B$
print B$
if not eof(1) then goto “line 1”
input b

I've seen programs in FB5 that do the same thing but they are more like 68 lines long instead of 7, and full of concepts I don't understand.
Could someone show me the shortest equivalent of the above? If it's short then maybe I won't have to learn a lot of concepts to understand it.