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