i have this situation when i get integer data from serial (characters in integer format) it writes as an integer to a file and thats good but the point is that when i convert these int to char with char(i); it does the conversion poorly.... actually very poorly, it inflates the file, also the file becomes useless, further more when i manually convert all the integer data to characters then the file is usable and exact same size as it should be....
I suspect char(); conversion, but there also could be my programing mistake.
How could i convert int to char including all ASCII table chars?
Or maybe there is an option to write HEX values directly to a file? That would be helpful because currently i use 3 file types (cfg, txt, png)