man.. i'm getting really crazy with this program!!!
everything was going fine.. then i tested the program with various text files.. and sometimes the same error apears at the fclose().. sometimes...
Type: Posts; User: Gather
man.. i'm getting really crazy with this program!!!
everything was going fine.. then i tested the program with various text files.. and sometimes the same error apears at the fclose().. sometimes...
THKS.. that solved it :D lol.. i'll put your name in my final presentation.. xP
what do you mean? flushing the stream?
other thing i forgot to mention.. the program is giving the error when i do the fclose(fin) for the second time. =X
loool.. well.. its closest to the almond recipe, but it has no secret.. and it has nothing to do with food.. and.. its not a recipe. :D
i'ts just a project/assignment where the program determines...
lol.. do I really need to explain it? please.. is there another way?
And is that really the cause of the program error?
I cant.. =S I have to use the files.. cant use strings
How do i print the contents 11 times without reopening the file? so that it goes to the begining of the file at the start of every loop.
what do you mean?.. i did the error checking in the begining
fin=fopen(txtfile[x],"r");
while ((fscanf(fin,"%s",wordtxtfile))!=EOF)
it's not opened??
there's a reason why i'm doing that.. but i'm not going to explain it now..
the question is.. does the problem come from there?!?!
sry.. i didnt explain what the program does.. and i only put the important part of the program!!
basically, it opens each file (PT.txt and FR.txt) ,the first time, to see if it exists.. then closes...
hi..
i'm learning C++ and i have a problem that has never happened to me before:
i have a project where i use text files.. i open the file, close it, start a FOR, open the file again (inside the...