sample application for reading file