I have a time1.h (the file that contains my class)
I have a time1.cpp (The file that contains my class' member funcs)
I have a progtime.cpp (The file that contains my Main)
My question is...
Type: Posts; User: EVIL_Murasame
I have a time1.h (the file that contains my class)
I have a time1.cpp (The file that contains my class' member funcs)
I have a progtime.cpp (The file that contains my Main)
My question is...
Yay... i have it working now...
Now i have a question... how do i find a string amongs all the strings i fprintedf in my txt??
A code example would be just great.
But if i reset the program the file pointer will be in the start of the file!. How do i position de pointer in a txt file WITH INFO already in it.
< DAMNIT.TXT >
This is a string...........
NO GOOD NOTHING HAPPENED!!!
I need a code that enters a string through keyboard and then outputs the string to a txt and the next time the program runs the next string will be written right below...
I have serious problems here...
if (0==feof(ayuda))
{
Pos=ftell(ayuda);
cout<<Pos; //after this it returns to 0 again... how?! WHEN!?
}
I used the fseek... but it returns a 1 value... that means that the pointer hasn't been moved... HOW HOW HOW DAMNIT!! Is there another way??
I have a question... how do you assign an EOF position to a FILE pointer?...
I tried Pointer=EOF;
But it says that cannot assign int to a FILE...
This code shows on screen what's on user.txt right?
But i have one question the FILE pointer... If I have a line how do i position the pointer in the start of the second line? If i use EOF it will...
I thank you deeply but... could you be more simple?... i may be asking too much but i new at this text thing. I don't know how fread() and fseek() really works...
Here goes part of the code.
if ((nota_iii<10)||(nota_iii>70))
goto repetir_nota_iii;
gotoxy(16,22);
promed=alumn.llenar_alumnos(LastNameP,
LastNameM,
...
I need to know how to a move a pointer through a .txt file using. I need to move the pointer so i can locate the beginning of a string, or an integer (or any number).