I want to perform file operations(fread, fwrite... etc) with a array(char*, but if is possible with any type also will be good).
I know that i can do it with sprintf and sscanf, but i no want use these. Why? i are writing a Intel 8080 emulator, and i are writing the RAM, so i will read more that individual chars, read ints and so on.
I want use fread and fwrite because you can give them the size of the elements, with sprintf and sscanf you can use format, but i must write code for every type.
At this moment i don't have any issues, nor much code, i only want know if my question has a answer, else i will see how convert a array of char to other data type...
Resuming, i can use char* as FILE* ?.
Sorry for my bat English...