Pulling up info from data into the game consol

Is there a function or away to make a function that would pull up a certain text file from data?

file.Read

thank you