outFile.write((char *) &ac, sizeof(account));

Oct 23, 2012 at 6:25pm
i wanna know the general function used in this line: " outFile.write((char *) &ac, sizeof(account)); " and what exactly does it do?
Oct 23, 2012 at 6:46pm
You mean the write function? If outFile is a std::ofstream, then the first argument is a pointer (char*) to the data and the second argument is the number of bytes to be written to the file.
Topic archived. No new replies allowed.