From: Per W. <pw...@ia...> - 2011-01-10 21:48:12
|
Your assign + test if you manage to open the files is incorrect. And you have also swapped the parameters to fopen(). Don't do: if(F==fopen("r", "input1.txt")) /* open file */ Instead do: F = fopen("input1.txt","r"); if (F != NULL) { // do something ... fclose(F); } else { // oops - failed to open file. ... } /pwm On Mon, 10 Jan 2011, Tornyi Endre wrote: > > Hi! > > > i learnd C in the school. ages ago i didnt used, and i forgetted some commands and right use of it. > > i attached my source file. its just not comlette beacause i cant stepp fordward. > my program says that open the files to read and write, but it can not read and write to file. > i useing windows 7, it is matter? > what do i wrong? > > Regards: Endre Tornyi > |