To write some text to 'sample.dat' using a stream type something in the textbox below and click 'Write'. To read the contents of 'sample.dat' using a stream click 'Read'.