Vlatko
Dec 8th, 2000, 01:11 PM
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:
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
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