Reading tsv files in java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shailesh333
    New Member
    • Aug 2009
    • 10

    Reading tsv files in java

    Hi all,
    Could anyone tell me , how I can read ".tsv" files in Java.
    Earlier the same module required me to use files of type "xls". I was able to find
    an api "JExcelApi" which mae it very easy to read cell values by row and column index. I now need to convert same file into a ".tsv" file and read it.
    Any help will be greatly appreciated.
    Thank you in advance...
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by shailesh333
    Hi all,
    Could anyone tell me , how I can read ".tsv" files in Java.
    Earlier the same module required me to use files of type "xls". I was able to find
    an api "JExcelApi" which mae it very easy to read cell values by row and column index. I now need to convert same file into a ".tsv" file and read it.
    Any help will be greatly appreciated.
    Thank you in advance...
    A lot of csv libraries have configurable separators, e.g. this one.

    kind regards,

    Jos

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Is it a tab separated values file? If so then a good old FileReader/BufferedReader pair can do the job.

      Comment

      Working...