You can use /play, or /loadbuf
/play -se file.txt 0
/loadbuf -s file.txt