Reading a Field in a Binary File
I have a binary file to read which contains the fields i specified in FileStructure. I read tht using DataInputStream.
example i gave u only some fields but there are 150 fields r thr those r short int and char s.
wht is the way of reading tht. output should print the values of variables i specified in the constructor.
class FileStructure I used only for ur reference. data i hav to read from binary file.
public class ReadFile
public static void main(String args)
File f=new File("C:\\Documents and \\VRP_U071201092710OSS00012.DAT");
FileInputStream in = new FileInputStream(f);
DataInputStream dataInputStream = new DataInputStream(in);
// how to loop this thr r multiple short and ints and char are thr.