Putting the contents of a text file to chat.

My question is quite simple.

I have a text file. I want it to be read, and the contents said (as a say executed on my end) to the chat, on either a console command, or a chat command (if E2).

Example: The text file in question says “Hello World!”, I do the trigger, and then I say “Hello World!”

contents = file.Read(“yourfile.txt”)
RunConsoleCommand(“say” , contents)