Category Archives: Uncategorized

Female Computer Scientist

https://www.quora.com/Im-a-female-and-I-really-want-to-study-Computer-Science-I%E2%80%99ve-heard-males-are-more-successful-Should-I-be-discouraged-and-switch-to-another-subject

Thesis Formatting

 

Mission Data Scientist

I have died every day waiting for you :(

Didn’t find you yet ! 🙁

SPOJ Solution – TEST – Life, the Universe, and Everything

 

Java Files and I/O

it needs java.io package containers .All these streams represent an input source and an output destination.
Stream:
A stream can be defined as a sequence of data there are two kinds of streams
InputStream:It is used to read data from a source
OutputSTream:It is used for writing data o a destination

Here is a hierarchy of classes to deal with Input and Output streams:
Java I/O StreamsThe two important streams are FileInputSTrea and FileOutputSTream which would be discussed in this tutorial:
Following constructor will create a input stream object to read the file:

Once you have InputStream object in hand,  then there is a list of helper methods which can be used to read to stream or to do other operations on the stream.

And there is OutPutStream that can be discussed later.It is almost same like:

And there are some other class for filereading and writing and creating directories.

Byte stream:

Character Streams:

Standard Streams:
Standard Input: System.in
Standard Output: System.out
Standard Error: System.err
Just like STDIN,STOUT,STDERR in C/C++
example to demonstrate inputstream and outputstream: