Results 1 to 4 of 4

Thread: How to read file line by line ?

  1. #1
    Join Date
    Oct 2008
    Posts
    8

    Default How to read file line by line ?

    Silly question.
    All the examples are treated the item in input file shall be delimited (org.springframework.batch.item.file.FlatFileItemR eader), are there easy way to read line by line ?

    I suppose FlatFileItemReader shall not force me to use FieldSet for some case.

  2. #2

    Default

    ---deleted---

  3. #3
    Join Date
    Dec 2006
    Posts
    1,061

    Default

    I'm a bit confused, it does read line by line? Different tokenizers determine how a FieldSet is created though.

  4. #4
    Join Date
    Oct 2008
    Posts
    8

    Default

    Yes, it is read line by line, but I want to read whole line, instead of delimited. so I don't need fieldSet for it.

    Like.
    GET:ABC,123456;BOOK,"SPRING BATCH COOKBOOK";

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •