Hello.
I'm trying to detect a line with this text: "OPINION"
I'm working with:
char c,c2;
while(c!=EOF)
{
c=fgetc(myfile);
if (strcmp (c,"O" = 0 )
{
.......
But I consider that there's another easier option, isn't?
I would be extremely obliged of anybody could help me...
I'm trying to detect a line with this text: "OPINION"
I'm working with:
char c,c2;
while(c!=EOF)
{
c=fgetc(myfile);
if (strcmp (c,"O" = 0 )
{
.......
But I consider that there's another easier option, isn't?
I would be extremely obliged of anybody could help me...