Torbjørn S. Kristoffersen wrote:

> How can I make a C program that reads line by line from a file?
> I want to pass each line into a string.

Use a loop, e.g.

        for (;;)
        {
                if (!fgets(line, sizeof(line), fp))
                        break;

                do_something(line);
        }

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to