|
Atari coding BBS
GEMDos |
Posted by: Bod/STAX
|
Feb,17.2012-18:03
|
I very rarely use GEMDos but I've got a situation where I need to store several small files into one big file.
According to my TOS Reference guide book when you create a file a two-byte file handle is stored in D0 if the operation is successful.
So if I have one file handle for all the files that are read and another file handle for the larger outputted file everything should be OK like if you have more than one file open in some BASIC language such as GFA or STOS?
In my code all files read in fine and output fine but 0 bytes are outputted even though I'm storing the file size read so I can output the correct number of bytes to the larger file. I am not getting any negative error number either.
Also I wouldn't need to seek the outputted file to get the the end of it just keep writing to it (and ensuring the file is closed at the end).
|
[All messages in this thread] [Start new thread]
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|