A simple function to help with file content access