Skip to content

Commit

Permalink
cheaty quine
Browse files Browse the repository at this point in the history
  • Loading branch information
BalaM314 committed Nov 2, 2024
1 parent 786b926 commit 3299055
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions programs/programs/quine.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

OPENFILE "quine.sc" FOR READ
WHILE NOT EOF("quine.sc")
DECLARE buf: STRING
READFILE "quine.sc", buf
OUTPUT buf
ENDWHILE
CLOSEFILE "quine.sc"

7 changes: 7 additions & 0 deletions programs/programs/test.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

OPENFILE "quine.sc" FOR READ
DECLARE buf: STRING
READFILE "nonexistent.txt", buf
OUTPUT buf
CLOSEFILE "quine.sc"

0 comments on commit 3299055

Please sign in to comment.