sorry i'm very new. can someone pls explain the parameters for writefile, readfile & createfile. i need to work on a file transfer program. thank u.
sorry i'm very new. can someone pls explain the parameters for writefile, readfile & createfile. i need to work on a file transfer program. thank u.
Are you asking how to open and read a file, open and write a file, and create a file in C++?
Use the ifstream class to read from files. (#include <fstream.h>)
ex.
Use the ofstream class to read from files. (#include <fstream.h>)Code:ifstream fin("filename.txt"); fin.write(stuffToWrite, 100, '\n'); fin.close();
ex.
Code:ofstream fout("filename.txt"); fout.getline(variableToHoldStuff, 100, '\n'); fout.close();
check http://www.cprogramming.com/tutorial/lesson10.html for a much better description of all this. I may have misread your question.. if this is the case just ignore me, and hopefully someone else will help you
this belongs in the windows forum.
if you want info on these functions how about you try MSDN online?? or even Google??
type the name of these functions into just about ANY search engine and you'll get a million sites that will tell you what you want to know.
don't be so lazy next time, use the web, that's what it's there for!
U.
Quidquid latine dictum sit, altum sonatur.
Whatever is said in Latin sounds profound.
thanks 4 the info
I thought this was a site that helps eachother with problems on c++, this includes commands, syntax, ETC...Originally posted by Uraldor
this belongs in the windows forum.
if you want info on these functions how about you try MSDN online?? or even Google??
if you dont call this the web what do you call it?
don't be so lazy next time, use the web, that's what it's there for!
U.
yeah uraldor why u being so ****ing negative?
and what makes u think this belongs to the windows forum?