I know, I have another thread about Applesoft BASIC right next to this one. But this question doesn't really fit there.
I've been trying for a while (unsuccessfully) to write some text files with Applesoft BASIC.
I'm using the DOS intercept character like this:
10 ? CHR$(4);"OPEN EXAMPLE"
20 ? CHR$(4);"WRITE EXAMPLE"
30 ? "THIS IS A TEST."
40 ? CHR$(4);"CLOSE EXAMPLE"
For some reason, DOS isn't intercepting the command on line 40, and the text file reads like this:
CLOSE EXAMPLE
4
I'm obviously doing something wrong...
Can I write line 40 differently? Is my entire method wrong?
Thanks,
WMH
I've been trying for a while (unsuccessfully) to write some text files with Applesoft BASIC.
I'm using the DOS intercept character like this:
10 ? CHR$(4);"OPEN EXAMPLE"
20 ? CHR$(4);"WRITE EXAMPLE"
30 ? "THIS IS A TEST."
40 ? CHR$(4);"CLOSE EXAMPLE"
For some reason, DOS isn't intercepting the command on line 40, and the text file reads like this:
CLOSE EXAMPLE
4
I'm obviously doing something wrong...
Can I write line 40 differently? Is my entire method wrong?
Thanks,
WMH