#156502 - NeX - Sat May 10, 2008 9:16 pm
So I've finally got my hands on something DLDI. An R4, to be precise. I want the size of a file. I get no file error, just always a daft filesize. Each file in the directory, ranging from 2 to 200kb, reads as "1179923538". The file in this example is 33,210 bytes. What am I not understanding?
_________________
Strummer or Drummer?.
Or maybe you would rather play with sand? Sandscape is for you in that case.
Code: |
soundf = fopen (filename[sounds], "r"); if(stat("kick0_maypex.raw",&st)==0) { iprintf("Size: %d\n",st.st_size); } else { iprintf("Couldn't read the file!\n"); } |
_________________
Strummer or Drummer?.
Or maybe you would rather play with sand? Sandscape is for you in that case.