I have a requirement of reading a file record by record so this would be a text file being built from mainframe data.
I have to read it and display all column information with proper heading. I want to know - what should be the best approach to read a file which doesn't contain just raw data but it contains records from a database.
Also this information needs to be displayed in a web page which keeps refreshing every 30 secs
Does the file have fixed-length records? Delimiters (commas, tabs)? Is it marked text (xml, html)? Those factors will drive exactly what classes in Java are the best fit. A good starting place is the IO Chapter in the Java tutorial.