Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open and Put commands

Status
Not open for further replies.

Wolfgang

Programmer
Apr 18, 1999
1
0
0
AU
How do I put four user defined variables into a data file for later access?
 
input a,b,c,d , a,b,c,d are four user definable variable<br>
open "filename.ext" for append as #1 ' opening a data file<br>
write #1 ,a,b,c,d ' write four variable in file<br>
close #1 ' close the file<br>
<br>
now , you have to read it the way you wrote it , if you <br>
wrote a first you have to read a first.<br>
<br>
file you made will be like this :<br>
<br>
Filename.ext<br>
<br>
&lt;a&gt; , &lt;b&gt; , &lt;c&gt; , &lt;d&gt;<br>
<br>
<br>
you can also use print #1 instead of write #1<br>
<br>
AMIR<br>
<br>
<br>
<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top