Hi everyone ,, i hope u r fine !!
i have question says
:
Should i convert from file to arrays ?
Code:if(answer == yes ); printf("How:confused:"); else printf("thanks"):
Hi everyone ,, i hope u r fine !!
i have question says
:
Should i convert from file to arrays ?
Code:if(answer == yes ); printf("How:confused:"); else printf("thanks"):
I off the top of my head, I could say no. Using rewind or fseek to reset your stream. and maybe toss in ftell and other helpers to search the file to see if their is a match could be used instead of putting everything into an array first then looking in the array.
Unless your file is extremely large yes. Trying to search through a text file is very very slow and trying to use seek() or any of the other file positioning mechanisms are not too reliable when dealing with text files.Should i convert from file to arrays ?
But if you do use arrays, you should be using an array of a structure not parallel arrays.