• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tracing trailer in file  RSS feed

 
Kumar Gaurav
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have to find out trailer info in a flat file so that while reading file i can ignore those lines.

My question is do i need any help info (Like line no where trailer info starts or trailer starts with which text etc) about file to trace the trailer info. or i can get it somehow.

Any help would be a great favor.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The java.io classes (like File, FileInputStream, etc.) don't know anything about file formats, so your code needs to handle all that. What does the file structure look like?
 
Kumar Gaurav
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the file fixed width text file where trailer might display say some of values for columns containg numeric data.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!