Dead Hackers Society
Other BBSes »
 
 

68k Inside

Sommarhack 2024

Silly Venture 2024 SE
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Re: GEMDos
Posted by: ggn Feb,18.2012-08:35 

> 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?

Do you mean that for the files that you read you do a fopen(), store the handle once, and then fread(), fclose(), fopen() etc without re-storing the file handle? If yes, then that's probably your problem. Don't make any assumptions that GEMDOS will return the same file handle for each consecutive file you open and read.

> 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.

If you point it to the correct file handle and you know for sure that the size you pass to fwrite() is not zero, then it should write something.


Anyway if you get really stuck just pastebin the code and I'll take a look :)







[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