home / developersection / category
We will now discuss the LiveData program mentioned earlier to illustrate the use of these classes. But before that lets see the case of NYSE and NASDAQ once again from previous post:
In the previous posts, we got an introduction to byte-oriented stream classes, where we used the FileInputStream classFileOutputStream classAs we can
The Java I/O library provides classes that allow us to read or write a user-defined object from or to a stream. The two classes: ObjectInputStream O
Here we discuss another important class in the I/O package. The java.io.File class provides an abstract representation of a file or directory on the host file system.
The File Concatenation program, as the name suggests, concatenates the contents of a given number of files. We specify the files on the command line as a variable argument list.
The Line Count program counts the number of lines in the specified text file. Java provides a class called LineNumberReader for this purpose. The LineNumberReader class wraps the BufferedReader class, which in turn wraps the Reader class.
Let’s write a utility called File Viewerthat accepts the name of a character file on the command line and displays its contents to the user console.
Just the way binary streams operate on binary files, the character streams operate on character files—that is, text files such as .txt, .odt, and .docx.
The simplest way to determine the length of a physical file is to open it in binary mode When we use the byte-oriented classes based on InputStream a
Exception Handling in Java: Understanding throws with ExampleLet’s look at the example shown here so we can better understand this feature. import
In Java, exceptions are broadly classified as: Checked ExceptionsUnchecked Exceptions Sometimes, the checked exceptions are also called compile-tim
In this post we are going to learn a very common practice developers usually follow when they are dealing with Exception handling. There is very handy