Komaru
Programmer
- Jul 29, 2010
- 6
Let me briefly explain: I'm writing a little tool that will help me to create text based adventure games using an engine I wrote a few years back. The problem is, sometimes a line will be printed out of order (because otherwise I would have to plan everything in advance). Here's an example of what I mean:
10 PRINT "One ";
30 PRINT "Three ";
20 PRINT "Two ";
And QBASIC will read this and print "One Three Two ", as opposed to "One Two Three".
So is there any batch file, or QB code that I can use to sort the line numbers of my generated BAS files? I would greatly appreciate the help! Thanks in advance,
~Komaru
10 PRINT "One ";
30 PRINT "Three ";
20 PRINT "Two ";
And QBASIC will read this and print "One Three Two ", as opposed to "One Two Three".
So is there any batch file, or QB code that I can use to sort the line numbers of my generated BAS files? I would greatly appreciate the help! Thanks in advance,
~Komaru