- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Problem solved. Please, the thread can be closed now.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page