Adds function to fetch text file