1. Reading one line of data at a time from a socket connected to the network
with an input stream object s. The output to be in standard ASCII character
encoding.
(a)DataInputStream da = DataInputStream(s.getInputStream());
(b)DataInputStream do = DataInputStream(FileInputStream(g.getInputStream());
(c)BufferedReader b= new BufferedReader
(newInputStreamReader(s.getInputStreamReader));
(d)BufferedReader b= new BufferedReader
(newInputStreamReader(s.getInputStreamReader), "8859_1");
2. what is the correct format of reading a line of
String objects ?
a) FileInputStream fis = new
FileInputStream("Filename.txt");
b) DataInputStream dis = new DataInputStream(new
FileInputSTream("FileName.txt"));
c) DataInputStream dis = new DataInputStream(new
FileInputSTream("FileName.txt"), "r");
Can anyone help me.