Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

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]

Topic Posted by  Date 
GEMDos Bod/STAX Feb,17.2012-18:03
  Re: GEMDos ggn Feb,18.2012-08:35
    Re: GEMDos Bod/STAX Feb,18.2012-12:12
      Re: GEMDos evil Feb,18.2012-12:37
        Re: GEMDos Bod/STAX Feb,18.2012-13:37
          Re: GEMDos ggn Feb,18.2012-18:31
            Re: GEMDos Bod/STAX Feb,18.2012-19:22
              Re: GEMDos grazey Feb,19.2012-17:26


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

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.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson