How to Write Java I/O
This article will teach you how to read from and write to text files. This is useful when you want to create your software's configuration file, text editor, and/or anything similar.
This article has been tagged as a stub. That means it's off to a good start, but still has plenty of room to grow before it reaches its full potential. Can you help it flourish? If you think the article offers complete and accurate instructions, feel free to remove this tag! |
Steps
-
1
-
2
-
3Create a static method which reads from file.
-
4Create a static method which writes to file.
-
5Go over to your main class and test it. This class contains the main(String[] args) method which starts your whole project.
-
6Play with it! Change the code, rewrite this project without looking for help, and stuff like that.
We could really use your help!
building muscle?
rate articles?

astrology relationships?

wireless networking?

electrical maintenance?

Tips
- Don't just type the code from my screenshots into your project, investigate the code for a little bit and try to understand how it works, and then implement it into your own project. That's how you learn new things.
About this wikiHow