Started writing function to create a char buffer from a given file