File I/O in java

Recently I had to read a hindi text file in java. I learnt a couple of lessons in the process:
1. First, eclipse kept raising a FileNotFoundException even though the file existed. Turns out if you put the ctor of FileStream in a try-catch the problem goes away.
2. The second lesson was learning how to run java programs w/o eclipse. For this do:
javac Foo.java
java -cp . Foo
3. The third lesson was how to display hindi characters in eclipse. For this see http://paranoid-engineering.blogspot.com/2008/05/getting-unicode-output-in-eclipse.html

This entry was posted in Software. Bookmark the permalink.

Leave a comment