[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

1337.0. "basic listing" by RISE::BEAUREGARD (Roger Beauregard SHR1-3) Thu Apr 14 1988 10:04

    	Question:
    
    	How does a person get a hardcopy of a basic program listing?
    
    	I did a type >prt: and the printer went nuts! The listing
    	is obviously not in ascii format. Any ideas?
    
    Roger
    
    
T.RTitleUserPersonal
Name
DateLines
1337.1Save it as ASCIILEDS::ACCIARDIThu Apr 14 1988 10:4215
    AmigaBASIC normally saves files in a tokenized format, which closely
    resembles gibberish.  To save a file in ASCII, simply append an
    'a' after the filename.  For example;
    
    	save "dh0:Basic/FILENAME, a"
    
    AmigaBASIC likes to see quotes around pathnames.  The comma after
    the filename is also required for an ASCII save.  I do this all the
    time, as I like to have versions of my famous Basic abominations
    that run on VMS also.
    
    By the way, if you type LLIST "FILENAME" from AmigaBASIC, you should
    get a listing without exiting Basic.
                                       
    Ed.
1337.2DICKNS::MACDONALDWA1OMM Listening 52.525Thu Apr 14 1988 16:394
    Err, AmigaBASIC does not like to see quotes appended after the ,a
    if you are trying to save the program as an ascii file.
    
    SAVE "filename",a