You have not assigned the text files DataIn and DataOut to their file names. Use
Assign(DataIn, 'myFile.dat');
Also, the link you provided does not work. Click on the SHARE button (3 to the right of the RUN button) and use the link there to share your project.
Read this article on file handling: