updated code for FileInputStrean.java - for create file, giving input
and write to the file from getting input.