Whole line

Hello.. this is a very stupid question..

How do I read a whole line (from standard input or a file) in c?

scanf() and fscanf() just reads until it finds a ' '

//Maestin

Use fgets(). Beware of gets() which can also do this but doesn't check for array overflow. gets() is the cause of many security problems over the past decade.