Text entry from a file

how do i make it so that the program takes some text from a file and
puts it in one of the entries?