
-----------------------------------
ShadowStorm
Thu May 01, 2003 1:20 pm

File I/O help
-----------------------------------
i have a file with about five lines in it

when i try to input the file i only get the first line.. i need help :(

this is what i have : 


open : Mission1Briefing, "Mission1.txt", get
get : Mission1Briefing, Briefing :*
close : Mission1Briefing

put Briefing
[/code]

-----------------------------------
Catalyst
Thu May 01, 2003 1:36 pm


-----------------------------------
open : Mission1Briefing, "Mission1.txt", get 
get : Mission1Briefing, Briefing :* 
close : Mission1Briefing 

put Briefing 

is only retrieving the first line beacuse it is only being called once

open : Mission1Briefing, "Mission1.txt", get 

loop
exit when eof(Mission1Briefing)
get : Mission1Briefing, Briefing :* 
end loop

close : Mission1Briefing 

put Briefing 

for this to work youll need an array of briefing variables, with each one storing one line

-----------------------------------
ShadowStorm
Fri May 02, 2003 12:18 pm


-----------------------------------
thanx alot...
