InputOutput Capability


Input/Output Capability

The I/O capability of Fortran is primitive. The basic I/O statements are READ , WRITE , and PRINT . The READ function can be used to read formatted or unformatted data either from a file or from standard input. The WRITE and PRINT statements are used to write data. A WRITE statement can be used to write to a file.

Java provides an entire library devoted to I/O functionality. Java uses a stream-based I/O system. A stream is simply an abstraction that represents a connection between a data source and a destination. Java provides a wide array of specialized I/O stream classes in two general categories. Character streams are designed to read and write character data. The characters can be read in one at a time or an entire line of data can be read in as a String . Byte streams are intended to read and write binary data. The data can be read in one byte at a time or an entire buffer of byte data can be read. With Java, there is a convenient I/O class to read or write any type of data from any data source.



Technical Java. Applications for Science and Engineering
Technical Java: Applications for Science and Engineering
ISBN: 0131018159
EAN: 2147483647
Year: 2003
Pages: 281
Authors: Grant Palmer

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net