Assuming $nfofile would be a valid path (including filename) of the file, yes... Though if the sole purpose is to read the contents of the file, just skip the second parameter to read, and it'll read the whole file up until the EOF.
(Though I must advice you, that nfo-files are generally associated with the wares-scene; which is not welcome here..)