Notes on Caesar Cipher
CIT 591, David Matuszek, Fall 2001

Possible problem with LineReader

I have a report of a problem with LineReader. There may (or may not) be some kind of a platform dependency issue.

The class works fine for me on two different computers, including my office computer. However, on my office computer (running Windows 2000 Pro), the statement

String fileName = dir + "\\" + file;

inserts an unnecessary backslash (although this doesn't seem to hurt anything). If you seem to be having trouble reading lines, it's easy enough to print out fileName to see if it is correct, and if not, to fix the problem by changing the above statement to

String fileName = dir + file;


How to download the LineReader.java file

Internet Explorer: Right-click on the link and choose Save Target As.... Navigate to where you want to save the file, and save it as All Files. (If you save it as Text Only, Internet Explorer adds the .txt extension, making the file LineReader.java.txt. You have to change it back to LineReader.java before you can use the file.)

Netscape Navigator: Right-click on the link, choose Save Link As..., navigate to where you want to save the file, and click Save.