M
Malchik
Guest
Hello!
I have the comal program:
0010 PAGE
0020 INPUT "WHAT´S YOUR NAME? ": NAME$
0030 CREATE FILE,NAME$,100,100
0040 OPEN FILE 1,NAME$,WITE
0050 WRITE FILE 1: NAME$
0060 CLOSE FILE 1
Now, the "name$" file is stored as a *.ran file, and it ain´t readable.
My first question is: How can i make the "name$" file stored as a *.prg file instead of the *.ran file?
My 2nd question is: Is it possible to make a *.txt file with the variable "name$" writting in it??? You know, if name$=Hello Then i want a *.txt file, that when you open it, you see the text: Malchik
I know in batch programming you can use the command: Echo Hello > 123.txt
To make such file... But is it possible to transfer the variable "name$" so you can use it in the COMAL command: PASS ???
I have the comal program:
0010 PAGE
0020 INPUT "WHAT´S YOUR NAME? ": NAME$
0030 CREATE FILE,NAME$,100,100
0040 OPEN FILE 1,NAME$,WITE
0050 WRITE FILE 1: NAME$
0060 CLOSE FILE 1
Now, the "name$" file is stored as a *.ran file, and it ain´t readable.
My first question is: How can i make the "name$" file stored as a *.prg file instead of the *.ran file?
My 2nd question is: Is it possible to make a *.txt file with the variable "name$" writting in it??? You know, if name$=Hello Then i want a *.txt file, that when you open it, you see the text: Malchik
I know in batch programming you can use the command: Echo Hello > 123.txt
To make such file... But is it possible to transfer the variable "name$" so you can use it in the COMAL command: PASS ???


