char*root is the name of the directory containing the file to be read.
char*name is the name of the file to be read.