saving data (as binary?) and importing it into C++ as an integer?
I'm making a 2D tile RPG clone of dragon warrior (NES).
I have a text file that looks like this:
Each digit represents a specific tile in a specific coordinate on the map.
Anyway, I found out that when the file is saved as a text file, the data is read in (using fread()) in ASCII.
I dont want this as then I am limited to storing 10 tiles as digits and the rest being other symbols. I would like to store all tiles as integers.
I would then assume that I would need to change the external file to a binary format. How can I save a text file as binary? or just save directly to a binary file?