cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
outFile.write((char *) &ac, sizeof(accou
outFile.write((char *) &ac, sizeof(account));
Oct 23, 2012 at 6:25pm UTC
mohamed atteya
(1)
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 UTC
Peter87
(11234)
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.