11-04-2004, 01:59 PM
Write a qbasic Quine, for those of you who don't know a quine is a program that when run outputs it's source, you may not use the open command that is just a weak hack and not really a true quine, but to give u a better idea of what needs to be done i'll show you a example using the hack...
Save it as thisfile.bas and run it to see the results correctly.
Just remember you may not use anything similar to the above, it's just there to show you what your program should do.
Good luck it's not a easy challenge.
Code:
Open "ThisFile.Bas" For input as #1
While Not Eof(1)
Line Input #1, ProgLine$
Print ProgLine$
Wend
Close #1
Save it as thisfile.bas and run it to see the results correctly.
Just remember you may not use anything similar to the above, it's just there to show you what your program should do.
Good luck it's not a easy challenge.