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

  1. Newsgroups: comp.sys.apple2
  2. Path: sparky!uunet!caen!destroyer!news.iastate.edu!news
  3. From: achauhan@warsaw.math.macalstr.edu (Amrit Chauhan)
  4. Subject: Re: AppleSoft Basic Question
  5. Message-ID: <BxID2y.AG7@news.iastate.edu>
  6. Sender: news@news.iastate.edu (USENET News System)
  7. Organization: Iowa State University, Ames IA
  8. References: <1992Nov7.071014.13355@vela.acs.oakland.edu>
  9. Date: Tue, 10 Nov 1992 16:13:45 GMT
  10. Lines: 38
  11.  
  12. Michael Heintz writes
  13. > I remember reading a trick to convert an AppleSoft basic program to a text
  14. > file so it could be printed out with a word processor.  Can anyone help me
  15. > out with the method required to do this trick?  Somehow I lost the article.
  16.  
  17. > I believe there is also a way to turn the text file back into an AppleSoft
  18. > Basic program.  Any help would be appreciated.
  19.  
  20. I'm sure that someone already answered your question, but what the heck, I'll
  21. put in my $0.02 anyway.
  22.  
  23. You can just add a line to the program, like so:
  24.  
  25. ]1 PRINT CHR$(4) "OPEN FILENAME" : PRINT CHR$(4) "WRITE FILENAME": LIST :
  26.    PRINT CHR$(4) "CLOSE FILENAME"
  27.  
  28. and you have yourself a TEXT file : FILENAME.  Then, when you want to make
  29. it a BASIC program again, just do this:
  30.  
  31. ]exec filename
  32.  
  33. and as long as there are no unncessary line feeds and carriage returns, it
  34. should just put everything where it belongs and you'll have a basic program
  35. in memory.
  36.  
  37. >     Many thanks,
  38. >         ...Mike
  39.  
  40. > -- 
  41. > Michael Heintz, Oakland University - Rochester, Michigan
  42. > InterNet:  mkheintz@vela.acs.oakland.edu 
  43. > BITNET:    mkheintz@oakland.BITNET
  44.  
  45. --
  46. < > ---------------------------------------------------------- < >
  47. < > Amrit Chauhan                 | achauhan@math.macalstr.edu < >
  48. < > PL: amritc@pro-hlg                                < >
  49. < > ---------------------------------------------------------- < >
  50.