how to read a string from a \n delimited file
        Posted  
        
            by Matias
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Matias
        
        
        
        Published on 2010-04-27T03:52:47Z
        Indexed on 
            2010/04/27
            4:03 UTC
        
        
        Read the original article
        Hit count: 230
        
I'm trying to read a return delimited file. full of phrases.
I'm trying to put each phrase into a string.
The problem is that when I try to read the file with
fscanf(file,"%50s\n",string);
the string only contains one word. when it bumps with a space it stops reading the string
© Stack Overflow or respective owner