Mais vous devriez maintenant avoir une très bonne idée sur la façon de relever ces défis. Bonne chance. XDD
i used this for my small app but you would have to adapt it....go check out ifstream on this site
1 2 3 4 5 6 7 8 9 10 11 12 13
|
#include <fstream>
// save details to file
std::ofstream userDetails;
userDetails.open("fileName.txt");
userDetails << tempFName << std::endl;
userDetails << tempLName << std::endl;
userDetails << tempUserName << std::endl;
userDetails << tempPassword << std::endl;
userDetails << tempMainChipStack << std::endl;
userDetails.close();
|
Others will have a go about error checking but you can look that up at the same time...just pointing you in the right direction...Cheers Paul
Last edited on