Yes. It's actually very easy.

Loop up Open(), ReadLine(), WriteLine() and Close() in the manual.

Post again if you have more questions.