file wird nicht angelegt
-
Hallo,
ich werde noch wahnsinnig!
ifstream t_sStreamIn; t_sStreamIn.open("D:\\hallo.xyz",ios::in|ios::binary|ios::trunc); if(t_sStreamIn.good()==false){ cout<<"\nFile is defective."<<endl; }
Ich will die Datei hallo.xyz anlegen, aber das Programm macht nichts!!! Worin liegt der Fehler??? Warum ist t_sStreamIn.good()==false???
-
Nimm mal ofstream statt ifstream (das ist nur zum Lesen)
-
Hab's mit ofstream probiert, danke