in reply to Re^2: Problem printing contents of filein thread Problem printing contents of file
Use the getcwd function from Cwd, or, even better, use absolute path names.