home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / apple2 / 23575 < prev    next >
Encoding:
Text File  |  1992-11-08  |  2.0 KB  |  50 lines

  1. Newsgroups: comp.sys.apple2
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!agate!dog.ee.lbl.gov!news!nosc!crash!<pro-nsdapple!pro-storm!bill>
  3.     id <m0mnwtI-0000blC@crash.cts.com>; Sat, 7 Nov 92 12: 36 PST
  4.     id <k743748@pro-nsdapple.cts.com>; Sat,  7 Nov 92 12: 09 PDT
  5.     id <k747452@pro-storm.cts.com>; Sat,  7 Nov 92 13: 10 CST
  6. From: bill@pro-storm.cts.com (Bill Long)
  7. Subject: Re: AppleSoft Basic Question
  8. Organization: ProLine [pro-storm] -- Dallas, TX -- 214/644-5113
  9. Date: Sat, 7 Nov 92 12:58:06 CST
  10. Message-ID: <k747452@pro-storm.cts.com>
  11. In-Reply-To: mkheintz@vela.acs.oakland.edu (Michael Heintz)
  12. References: <1992Nov7.071014.13355@vela.acs.oakland.edu>
  13. Lines: 35
  14.  
  15. In <1992Nov7.071014.13355@vela.acs.oakland.edu>
  16. mkheintz@vela.acs.oakland.edu (Michael Heintz) writes:
  17.  
  18. >I remember reading a trick to convert an AppleSoft basic program to a text
  19. >file so it could be printed out with a word processor.  Can anyone help me
  20. >out with the method required to do this trick?  Somehow I lost the article.
  21.  
  22. Go into BASIC and LOAD the program you want to convert. Then add the
  23. following line:
  24.  
  25. 0 ? CHR$(4)"OPEN PROGRAM.TXT":? CHR$(4)"WRITE PROGRAM.TXT":LIST:?
  26. CHR$(4)"CLOSE":END
  27.  
  28. Hmmm.. I think that's right. Then run the program. You should end up with a
  29. text file of the program in the file PROGRAM.TXT. You can just delete the
  30. line 0 in your word processor.
  31.  
  32. >I believe there is also a way to turn the text file back into an AppleSoft
  33. >Basic program.  Any help would be appreciated.
  34.  
  35. After editing the program to your liking, just go back into BASIC and type:
  36.  
  37. EXEC PROGRAM.TXT
  38.  
  39. Now you have the new version of the program in memory. Now just SAVE it like
  40. you normally would and you're all done! :)
  41.  
  42. -B.L.
  43.  
  44. P.S. Make sure that after you make the changes in your word processor that
  45. you save it as a TEXT file and not an AWP file or something. :)
  46.  
  47. Internet: bill@pro-storm.cts.com          | GEnie: bill.long
  48.     UUCP: crash!pro-storm!bill            |  Pro-Storm -+- Dallas, TX
  49.   Bitnet: bill%pro-storm.cts.com@nosc.mil | 12/2400 baud - 214/644-5113
  50.