wrong reading.
wht I want is name and surname=burcin erek number=783389
but output name and surname=burcin number=erek
it is so funny but no solution.
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <conio.h>
#include <string>
using namespace std;
void file_read()
{
string name1;
string numb1;
ifstream f("file1.txt");
f>>name1>>numb1;
cout << "name and surname=" << name1 << "\n number=" << numb1<<"\n";
}
void file_write()
{
string nam="burcin erek";
string numb="783389";
ofstream f("file1.txt");
f << nam <<" " << numb;
}
int main(int argc, char *argv[])
{
file_write();
file_read();
system("PAUSE");
return EXIT_SUCCESS;
}