Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
715 Views

Problem reading pcx files inside SD with Nios II Eclipse

Hello guys, I've written a small program in C that reads PCX files from inside a SD card. On its development, I used fopen("name.pcx", "r") to open the files and I got some errors because fopen was unable to read some parts of the file. To solve it, I just used fopen("name.pcx", "rb") to open the file as a binary file, and the problems were gone. 

 

Now I'm trying to write the same program using the Nios II Eclipse IDE, but I'm facing the same problem again. I'm using alt_up_sd_card_fopen to open the image file from the SD card, but the same problem is happening again. Is there a way to open files like "rb" opens them as a binary, instead of a text file? 

 

Thanks in advance!
0 Kudos
1 Reply
Highlighted
Valued Contributor III
4 Views

Problem solved. Please, the thread can be closed now.

0 Kudos