Add README, implement KILL/NAME, use relative paths in tests

Add README.md for public release. Implement KILL and NAME statements
for file management. Change test programs to use relative paths
instead of /tmp/ and clean up temp files with KILL. Update .gitignore
for test artifacts.
This commit is contained in:
Eremey Valetov
2026-02-10 15:53:57 -05:00
parent 66479b5d6e
commit df5c3083b1
7 changed files with 171 additions and 6 deletions
+3 -2
View File
@@ -1,11 +1,12 @@
10 REM WRITE#/INPUT# and EOF test
20 OPEN "/tmp/gwbasic_wi_test.txt" FOR OUTPUT AS #1
20 OPEN "gwbasic_wi_test.txt" FOR OUTPUT AS #1
30 WRITE #1, "Alice", 25
40 WRITE #1, "Bob", 30
50 CLOSE #1
60 OPEN "/tmp/gwbasic_wi_test.txt" FOR INPUT AS #1
60 OPEN "gwbasic_wi_test.txt" FOR INPUT AS #1
70 WHILE NOT EOF(1)
80 INPUT #1, N$, A
90 PRINT N$; A
100 WEND
110 CLOSE #1
120 KILL "gwbasic_wi_test.txt"