Re: File Reading In Mac

2010-11-22 Thread Ned Deily
In article <66e4164c-e81d-4a65-b847-c5ef900fa...@a37g2000yqi.googlegroups.com>, dilip raghavan wrote: > I have been trying to read contents from a file in MAC. > I wrote the code > > filename = "test.rtf" > FileHandle = open(filename,'r') > > fileStr = FileHandle.read() > print fileSt

File Reading In Mac

2010-11-22 Thread dilip raghavan
Hello , I have been trying to read contents from a file in MAC. I wrote the code filename = "test.rtf" FileHandle = open(filename,'r') fileStr = FileHandle.read() print fileStr FileHandle.close() When I see the output I see a lot of junk. The junk is like a lot of question marks, the fo