basic text file previewing