How do i read a line from a text file in a Win32 app. If i use this in a non dos app i get errors:
Code:
char buffer[81];
FILE *in_file,*fopen();
char *fgets(); 
if((in_file = fopen ( "c:\\bootlog.txt","r"))!= NULL )
{ 
fgets(buffer,81,in_file);
}
Errors:
: error C2660: 'fopen' : function does not take 2 parameters
: error C2660: 'fgets' : function does not take 3 parameters