Jump to content
  • Advertisement
Sign in to follow this  

file to array

This topic is 2852 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

Is there any program to convert a file to something like this
unsigned char tiledata_rick_astley007[19328] = {
0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11, /* Tile #0 */
0x11,0x11,0x12,0x22,0x11,0x11,0x12,0x22,0x11,0x11,0x12,0x22,0x11,0x11,0x12,0x22, /* Tile #1 */
0x23,0x32,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22, /* Tile #2 */
If so that would be great.

Share this post

Link to post
Share on other sites
It's not very clear what you mean by "convert a file." Do you mean convert it from binary to text format? Text to binary? Can you describe what you need in a different way?

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!