Add text file reading/splitting code