c64 guru: save a file again

From: Ron Hudson <ron.hudson_at_sbcglobal.net>
Date: Tue Mar 9 22:25:25 2004

Thanks! I'll try that.

On Tuesday, March 9, 2004, at 07:24 PM, Cameron Kaiser wrote:

>> It seems I can't save a file twice with the same name
>>
>> ... write basic program ...
>> save "program",8
>> ... edit basic program ...
>> save "program",8
>> (light on floppy blinks - error )
>
> This is a "feature" of Commodore DOS (the error is 63, FILE EXISTS,
> 00, 00).
> You can handle this in two ways.
>
> 1. Save-with-replace:
>
> SAVE"_at_0:PROGRAM",8
>
> This has a notorious bug on 1541 disk drives that tends to strike when
> the disk is very near capacity, since both copies of the program must
> exist on the disk at once. A safer approach is to
>
> 2. Scratch first, save later.
>
> OPEN15,8,15,"S0:PROGRAM":CLOSE15
> SAVE"PROGRAM",8
>
> This is the safest approach as it has the least chance to go berserk
> unseen.
>
> Many disk wedges like Epyx FastLoad and DOS WEDGE 5.1 reduce the OPEN
> statement to _at_S0:PROGRAM or >S0:PROGRAM or some such variant.
> Alternatively,
> have a block in your program like this:
>
> 63998 END
> 63999 OPEN15,8,15,"S0:PROGRAM":CLOSE15:SAVE"PROGRAM",8
>
> then RUN 63999 whenever you want to save-and-replace.
>
> --
> ---------------------------------- personal:
> http://www.armory.com/~spectre/ --
> Cameron Kaiser, Floodgap Systems Ltd * So. Calif., USA *
> ckaiser_at_floodgap.com
> -- Backup not found. Abort, Retry, Vomit, Panic, Write Resume File?
> -----------
>
Received on Tue Mar 09 2004 - 22:25:25 GMT

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:37:04 BST