good day everyone.. thx for reading..
this is my problem:
i want to use the write() function, in ofstream, to write strings into a file.. but write() requires parameters of const char pointer and streamsize...
for(unsigned i=0; i != questions.size(); i++)
{
qptr = &questions[i]; //vector element(string)
tempfile.write(qptr, stringsize);
}
do i really need to convert string to char first? any simpler way?
and,, any better idea than using write()??
thx..