J2EEGeneral J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I was just wondering how you load a text file in java? I am new to the java language and I am working on an app that's supposed to read and write text.
Have a look at the following URL, which contains the source for creating a text editor. It's pretty simple but it demonstrates the functionality that you asked for:
Yes, but I'm not looking for a graphical solution, the program I am developing is a commandline application and doesn't have a graphic interface. (Swing, isn't it?)