ReadString
ReadString["file"] reads the complete contents of a file as a string.
ReadString[stream] reads everything from a stream.
ReadString[src, term] reads until the terminator is encountered.
Examples
Read entire file:
ReadString["myfile.txt"]
(* "contents of file..." *)Please visit the official Wolfram Language Reference for more details.