parsing a file line by line

2003-10-16 Thread Anagha
Hi , I am a new bie to haskell. I need to read a file and get it contents line by line and then eventually word by word. I have written the code to read a file , but the returned value is all the lines in the file. How do I parse this whole text message ( contents of the file) into individual

Re: parsing a file line by line

2003-10-16 Thread Hal Daume III
Take a look at the functions lines and words. On 16 Oct 2003, Anagha wrote: Hi , I am a new bie to haskell. I need to read a file and get it contents line by line and then eventually word by word. I have written the code to read a file , but the returned value is all the lines in the