/*# ReadRealyLongTe xtLine() needs to be written (by you). The text line could be very very very very long!!! upto 30K characters or more than this
# There is a logical error in the code – you need to find it and fix it.*/
/***
PrintX.c
Prints the file C:\X.TXT line by line.
*/
char * ReadRealyLongTe xtLine(File* p_fhInFile)
{
}
void PrintX(void)
{
File* fhInFile;
char *strLineBuf;
fhInFile = fopen(“c:\\x.tx t”, “r”);
if(fhInfile)
{
while( (strLineBuf = ReadRealyLongTe xtLine(fhInFile )) != NULL)
printf(“%s”, strLineBuf);
fclose(fhInFile );
}
else
printf(“\r\nCou ld not find C:\\X.TXT!!”);
}
int main()
{
PrintX();
}
/* only FUNCTION readrealylongte xtline() needs to be written and the logical problem needs to be figured out
plz do post ur replies .
# There is a logical error in the code – you need to find it and fix it.*/
/***
PrintX.c
Prints the file C:\X.TXT line by line.
*/
char * ReadRealyLongTe xtLine(File* p_fhInFile)
{
}
void PrintX(void)
{
File* fhInFile;
char *strLineBuf;
fhInFile = fopen(“c:\\x.tx t”, “r”);
if(fhInfile)
{
while( (strLineBuf = ReadRealyLongTe xtLine(fhInFile )) != NULL)
printf(“%s”, strLineBuf);
fclose(fhInFile );
}
else
printf(“\r\nCou ld not find C:\\X.TXT!!”);
}
int main()
{
PrintX();
}
/* only FUNCTION readrealylongte xtline() needs to be written and the logical problem needs to be figured out
plz do post ur replies .
Comment