In the DOS window, use the DIR command to look at the directory.
In Unix (or Linux) use ls -l
.
Since it is a text file, you can use the TYPE command (in DOS) or the cat command (in Unix) to see it on the screen.
Here is a sample run (which, of course, is similar to what you just did):
C:\Programs>DIR 06/04/00 07:55p <DIR> . 06/04/00 07:55p <DIR> .. 06/04/00 07:55p 693 WriteTextFile.class 06/04/00 07:55p 475 WriteTextFile.java C:\Programs>java WriteTextFile C:\Programs>DIR 06/04/00 07:56p <DIR> . 06/04/00 07:56p <DIR> .. 06/04/00 07:56p 120 reaper.txt 06/04/00 07:55p 693 WriteTextFile.class 06/04/00 07:55p 475 WriteTextFile.java C:\Programs>TYPE REAPER.TXT Behold her, single in the field, Yon solitary Highland Lass! Reaping and singing by herself; Stop here, or gently pass!
Could you edit reaper.txt with a text editor?