Menu

Could you post some samples

Help
ThePiter
2005-08-23
2013-03-22
  • ThePiter

    ThePiter - 2005-08-23

    Can you post some example with Fixed Width Format.
    Please
    thanks

     
    • Sam Kim

      Sam Kim - 2005-12-16

      OK...

      Let's say that first 3 elements 5 characters and next 2 have 10 characters each.

      int[] widths = new int[] {5, 5, 5, 10, 10};
      DataFile df = DataFile.createReader("8859_1");
      df.setDataFormat(new FixedWidthFormat(widths);
      .
      .
      .

      then it works the same way with any other data formats.

      Does this answer your question?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.