software






 

Question by  jrbaseball06 (21)

How do I go about reading ASCII files in Java?

 
+4

Answer by  hwht25 (441)

Well you can basically click the open button under the file tab on your java program once it's open. Then locate your file and open it. It should open accordingly.

 
+4

Answer by  gigo (1706)

You have to use the FileReader. Import it and create an instance with new with the filepath as parameter. With the read() method which you can call in an loop, you can read the file char by char.

 
You have 50 words left!