Click here to Skip to main content
15,909,539 members

Comments by salemAlbadawi (Top 3 by date)

salemAlbadawi 1-Jan-15 0:51am View    
i don't know the method that save the user on the aspnetusers table to change it
i need to change the functionality to this method and make it save the user to my custom table
salemAlbadawi 23-May-14 15:46pm View    
please describe more
salemAlbadawi 23-May-14 12:38pm View    
Reading from a file can also be performed in the same way that we did with cin:


// reading a text file
#include <iostream>
#include <fstream>
#include <string>
using namespace std;

int main () {
string line;
ifstream myfile ("example.txt");
if (myfile.is_open())
{
while ( getline (myfile,line) )
{
cout << line << '\n';
}
myfile.close();
}

else cout << "Unable to open file";

return 0;
}