MAy be somebody knows where I can find examples how to read from FIle in Java
Re: Java I/O
"Bob" <firstname.lastname@example.org> wrote:
>MAy be somebody knows where I can find examples how to read from FIle in
To read a file using the classes in the JDK you need to create an instance
of java.io.File (which will hold the file itself) and an instance of java.io.Reader
(for character data) or java.io.InputStream (for raw binary data) or one
of its subclasses.
The java.io.FileReader ("@see Decorator pattern") and takes a java.io.File
as a parameter of its constructor. Take a look at the JDK docs for information
on the APIs of these classes.
Hope that helps.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL