Announcement Announcement Module
Collapse
No announcement yet.
Problem in appending to a file Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem in appending to a file

    Hi I am trying to append to a file but getting an error: File already exists


    private FlatFileItemWriter<T> delegate;

    FileSystemResource resource = new FileSystemResource("abc.txt");
    this.delegate.setShouldDeleteIfExists(true);
    this.delegate.setResource(resource);
    this.delegate.open(ec);
    this.delegate.write(list);
    this.delegate.close();

    Please help
Working...
X