MAy be somebody knows where I can find examples how to read from FIle in Java
Re: Java I/O
"Bob" <email@example.com> 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.
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center