Trying to use methods to read a file content