I have to code some algorithm's result in a file. A Result is a list of blocks, each one defined by 5 numbers: 3 ints and 2 floats. The simplest way to code it in a file is of course plain text, for example like this:
12 56 81 0.34 1.67
124 11 76 0.75 6.11
...
It is also the worst way taking the file size into account.
How could I reduce the file size? If these were all integers, I would just convert them to bytes and simply write them as bytes to file and it would reduce the size a bit. But the floats are more problematic. Any ideas? In C# .NET