Commons IO
  1. Commons IO
  2. IO-182

Add new APPEND parameter for writing string into files

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major 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
        Henri Yandell added a comment -

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

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

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

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

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

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

        Closing, we released version 2.1.

        Show
        Gary Gregory added a comment - Closing, we released version 2.1.
        Hide
        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 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:
            Niall Pemberton
            Reporter:
            Stefan Simik
          • Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development