   Quick file-writing question
  I've got a function that is trying to write information out to a file:fstream fInFile("pwds.txt", ios::out|ios::app);if (!fInFile.is_open()){cout << "Password file not found!" << endl;return false;}else{fInFile << endl;fInFile << newClient.userName << "," << newClient.pWord;sendString(iSocket, "true");return true;this writes fine, but it won't take a newline when writing to the file no matter where I put "endl".so where I would wantusername,passwordusername2,password2I getusername,passwordusername2,password2which won't work with what I want to do.Could someone tell me wher I'm going wrong? I was sure "endl" made it take a newline when writing to a file.   
  try using "\r\n" instead.   