pull out file contents into a variable