hello, i'm studying files and streams in java from JAVA how to program - Deitel but it's so not clear,,, is there another book or a website that explains this better? i could really really use it. thanx ally:icon_biggrin:

Dani AI

Generated

Deitel can be thorough but a bit dense for first exposure. , the short replies here reflect that: found the book fine, suggested searching, and pointed to the official tutorial. A faster route is a small, practical learning plan plus a couple of focused references.

Start by learning the concept differences: byte streams (InputStream/OutputStream) vs character streams (Reader/Writer). Do three tiny exercises: copy a file, count lines, and read a CSV into simple objects. Use buffered wrappers for performance and try-with-resources (Java 7+) so streams close automatically. Next, study binary I/O and object serialization but never deserialize untrusted data. After that, move to java.nio.file (Files, Paths) for concise, reliable file operations (copy, readAllLines, walk). Common pitfalls to watch for: forgetting to close streams, wrong character encoding (use UTF-8 explicitly), swallowing IOExceptions, and assuming file paths/perms are identical across platforms.

For clear, example-driven reading and up-to-date coverage, see the Baeldung guide to Java I/O and a concise overview of the NIO Files/Paths APIs; for API-level details, consult the Java Files class in the official docs:

Baeldung — Guide to Java I/O
Baeldung — Java NIO Files and Paths
Java SE 8 Files API (official javadoc)

Recommended Answers

All 3 Replies

Funny, I read that book and had no problems...

Do a google search for Java Stream

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.