Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
! ! open"text.txt" for input & output ! ! ques
#1
I have some questions...but answers seem too complicated for me Tongue

1)how do I save file with the name I want?
something like this

Code:
open "input"mychoosednamewhichIcantype" .txt" for output as #1
print #1
close

2)what does #1 mean? how does it help me anyway?
3)how can i read from the second line of file??

bla.txt:
Code:
Bond
Lights

qbasic program:
Code:
open"bla.txt" for input as #1
input #1.s$
print s$
close

but it will only print me the first line word, Bond...

so thank you if you wasted your time helping me Smile
Reply


Messages In This Thread
! ! open"text.txt" for input & output ! ! ques - by -dezell- - 09-01-2004, 09:34 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)