In many projects, I saw that data object/structure are written into file in binary mode, and then retrieve them back from the file in binary mode again.
Binary format is more accurate for storing the numbers as they are stored in tha exact internal representation. There are no conversations while saving the data and therefore saving is much faster.