lundi 25 décembre 2017

Ifstream not opening file & not reading

Here's my code. It is doing nothing i tried to keep the file in directory but my life and my wife both sucks.

 std::ifstream fin;
 fin.open("C:\\Users\\Venom\\Documents\\Qt\\Pyramid\\Files\\Signup Files\\name.txt", std::ios::in);
char temp[30];
while(fin.is_open()==0)
{
for(int i=0; i++; i<=25)
{
    fin>>temp[i];
}
}

for(int i=0; i++; i<=25)
{
    std::cout<<"\n"<<temp[i];
}

Aucun commentaire:

Enregistrer un commentaire