convert file to list