What is the purpose of FILE*file;

Game Editor comments and discussion.

What is the purpose of FILE*file;

Postby ayu04 » Thu Mar 22, 2012 12:56 am

I have encountered a code like this, can you tell me what's the purpose of this? thank you. :D
ayu04
 
Posts: 20
Joined: Fri Nov 18, 2011 1:47 pm
Score: 0 Give a positive score

Re: What is the purpose of FILE*file;

Postby skydereign » Thu Mar 22, 2012 2:54 am

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*.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: What is the purpose of FILE*file;

Postby ayu04 » Thu Mar 22, 2012 5:15 am

Thanks sir! :)))
ayu04
 
Posts: 20
Joined: Fri Nov 18, 2011 1:47 pm
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest