reading/writing files in turbovision

i have got a problem i am programming in turbo vision (first time) and need to
read from a file and write to a file. I am using a book wich tries to teach tv
by an example. but in the files case i am lost completely. can anyone explain
to me how to work with streams, how to get data form a dialogscreen  in a file