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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        896d 9h 30m 1 Niall Pemberton 12/Mar/11 22:14
        Resolved Resolved Closed Closed
        211d 17h 34m 1 Gary Gregory 10/Oct/11 16:48
        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/
        Gary Gregory made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Gary Gregory added a comment -

        Closing, we released version 2.1.

        Show
        Gary Gregory added a comment - Closing, we released version 2.1.
        Henri Yandell made changes -
        Comment [ Hi,

        Thank you for your email.

        Please be aware my new email address is kenny.macleod@trapezegroup.co.uk<mailto:kenny.macleod@trapezegroup.co.uk>

        Please update your records accordingly

        Kind regards

        Kenny MacLeod.
        ]
        Henri Yandell made changes -
        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/
        ]
        Gary Gregory made changes -
        Summary add new APPEND parameter for writing string into files Add new APPEND parameter for writing string into files
        Niall Pemberton made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Niall Pemberton [ niallp ]
        Fix Version/s 2.1 [ 12316027 ]
        Fix Version/s 3.x [ 12312838 ]
        Resolution Fixed [ 1 ]
        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
        Mark Thomas made changes -
        Workflow jira [ 12442994 ] Default workflow, editable Closed status [ 12601752 ]
        Benoit Lafontaine made changes -
        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.
        Niall Pemberton made changes -
        Field Original Value New Value
        Fix Version/s 2.x [ 12312838 ]
        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
        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.
        Stefan Simik created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development