Jump to content
  • Advertisement
Sign in to follow this  
sadrius

Looking for a Cross-Platform File I/O Library...

This topic is 4842 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm currently working on a small cross-platform RPG in C using SDL and OpenGL. As I'm developing the project on a Mac and seeking to release it for Mac, Windows, and Linux, I'm going to have to deal with endianness when it comes to accessing binary files. I'm looking for a cross-platform library that handles endianness transparently, and something that I can use to read and write arbitrarily sized chunks of data with. Something that deals with the newline problem (\n vs \n\r, etc.) would be great as well. The library should be LGPL or something similar. Thanks. [Edited by - sadrius on June 23, 2005 6:14:39 PM]

Share this post


Link to post
Share on other sites
Advertisement
I'm in the process of writing a lightweight, platform-independant library of platform-dependant features such as threading and thread synchronization, files (synchronous and asynchronous), atomic functions, endian conversion functions, heaps, etc.

Share this post


Link to post
Share on other sites
sadrius, i can only assume 2 things, a) you missed it b) it doesn't suit your needs, but just to let you know, SDL has endian conversion functions.

Share this post


Link to post
Share on other sites
Quote:
Original post by sadrius
Something that deals with the newline problem (\n vs \n\r, etc.) would be great as well.

If you're reading and writing in binary, then this problem ceases to exist.

Share this post


Link to post
Share on other sites
Quote:
Original post by BorisTSR
sadrius, i can only assume 2 things, a) you missed it b) it doesn't suit your needs, but just to let you know, SDL has endian conversion functions.


I'm aware that SDL has a macro to determine the endianness of a system, but I had no idea that it had endian conversion functions. Thanks, I'll take a look!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!