Page 1 of 1

What is the purpose of FILE*file;

PostPosted: Thu Mar 22, 2012 12:56 am
by ayu04
I have encountered a code like this, can you tell me what's the purpose of this? thank you. :D

Re: What is the purpose of FILE*file;

PostPosted: Thu Mar 22, 2012 2:54 am
by skydereign
A FILE* is a pointer to a file. So if you want to read information from a file or write information into a file, you have to use a FILE*.

Re: What is the purpose of FILE*file;

PostPosted: Thu Mar 22, 2012 5:15 am
by ayu04
Thanks sir! :)))