AnsweredAssumed Answered

How to read a file and its content programtically

Question asked by yasir.mahmood on May 6, 2008
Latest reply on May 7, 2008 by yasir.mahmood
I have studied the alfresco sample to write and read the contents of file through sample ContentReadAndWrite in Alfreco SDK. There is statement
Reference contentReference = ContentReadAndWrite.createNewContent(contentService, strFileName, strContents);
This statement writes the new contents in the file. But I just need to read the contents.
I need to make a method that takes filename as input and outputs the contents of that file.

How to do that? Any Help?

Yasir Mahmood