Ok, So I'm working on an all in one Chemistry calculator. spare me on the logistics of how hard this is of a task. That aside. I've some problems getting the file IO to work right
this the code I'm working with, Now mind you I know using the fstream would be easier, but I need to know how to do this so I can backwards engineer for reading integer values from a file. Plus I dont know how to create a file with fstream.
The array you have defined is actually just a const char* to the first address in disguise. So for fopen, just pass c_elmf as the first parameter and it should work. When you have the [256] on the end, that secretly dereferences the pointer and passes the char at that location.