Java Input/Output

Java IO is an API that comes with Java which is targeted at reading and writing data (input and output). Most applications need to process some input and produce some output based on that input. For instance, read data from a file or over network, and write to a file or write a response back over the network.

The Java IO API is located in the Java IO package (java.io).

Use these tutorials for some nice concepts aroung Java IO APIs.

Related Tags

Tutorials

Java Read File to String: readString() and 7 More Ways

Learn to read a file to String in Java with Files.readString() (Java 11), Files.readAllBytes(), Files.readAllLines() and lines(), BufferedReader, Scanner and FileInputStream, plus how to read from the classpath, avoid charset and line separator mistakes and stream large files.

Java Create Temp File or Directory (with Cleanup Examples)

Create a temp file or folder in Java with Files.createTempFile() and Files.createTempDirectory(). See how the older File.createTempFile() differs, and delete temp files safely with finally, DELETE_ON_CLOSE, deleteOnExit() or JUnit @TempDir.

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.