Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

reading a file record by record  RSS feed

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 9481
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!