Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-182

Add new APPEND parameter for writing string into files

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 2.1
    • Component/s: Streams/Writers
    • Labels:
      None

      Description

      It would be great to have one additional parameter for writing strins into file - boolean append.
      If true, string will be appended to the end of the file.
      It is very useful for many purposes, for example logging and so on..

        Activity

        Hide
        bayard Henri Yandell added a comment -

        Bad way of doing APIs though - what you're really asking for is an appendStringToFile imo.

        Show
        bayard Henri Yandell added a comment - Bad way of doing APIs though - what you're really asking for is an appendStringToFile imo.
        Hide
        stefan.simik Stefan Simik added a comment -

        Yes, exactly
        appendStringToFile(File file, String encoding, String textToAppend);
        is the function I was looking for.

        Show
        stefan.simik Stefan Simik added a comment - Yes, exactly appendStringToFile(File file, String encoding, String textToAppend); is the function I was looking for.
        Hide
        joel1di1 Benoit Lafontaine added a comment -

        Well, this patch add the 'append' option to the write functions.

        Show
        joel1di1 Benoit Lafontaine added a comment - Well, this patch add the 'append' option to the write functions.
        Hide
        niallp Niall Pemberton added a comment -
        Show
        niallp Niall Pemberton added a comment - Fixed, thanks for the patch http://svn.apache.org/viewvc?view=revision&revision=1081011
        Hide
        garydgregory Gary Gregory added a comment -

        Closing, we released version 2.1.

        Show
        garydgregory Gary Gregory added a comment - Closing, we released version 2.1.
        Hide
        noreply@rslcityspace.co.uk noreply@rslcityspace.co.uk added a comment -

        Thank you for your message, your email will not be forwarded but we
        want to hear from you!

        PLEASE NOTE OUR NEW CONTACT DETAILS AND RE-SEND YOUR EMAIL TO THE
        RELEVANT DEPARTMENT AS BELOW:
        RSLCityspace Ltd, Unit 3, Fullwood Close, Coventry, CV2 2SS
        sales@rslcityspace.co.uk (central number: 02476 587894)
        support@rslcityspace.co.uk (dedicated line: 02476 587898)
        finance@rslcityspace.co.uk
        RSLCityspace Ltd - Formerly known as Kizoom Ltd
        http://www.rslcityspace.co.uk/

        Show
        noreply@rslcityspace.co.uk noreply@rslcityspace.co.uk added a comment - Thank you for your message, your email will not be forwarded but we want to hear from you! PLEASE NOTE OUR NEW CONTACT DETAILS AND RE-SEND YOUR EMAIL TO THE RELEVANT DEPARTMENT AS BELOW: RSLCityspace Ltd, Unit 3, Fullwood Close, Coventry, CV2 2SS sales@rslcityspace.co.uk (central number: 02476 587894) support@rslcityspace.co.uk (dedicated line: 02476 587898) finance@rslcityspace.co.uk RSLCityspace Ltd - Formerly known as Kizoom Ltd http://www.rslcityspace.co.uk/

          People

          • Assignee:
            niallp Niall Pemberton
            Reporter:
            stefan.simik Stefan Simik
          • Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development