[jira] Created: (IO-182) add new APPEND parameter for writing string into files

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (IO-182) add new APPEND parameter for writing string into files

JIRA jira@apache.org
add new APPEND parameter for writing string into files
------------------------------------------------------

                 Key: IO-182
                 URL: https://issues.apache.org/jira/browse/IO-182
             Project: Commons IO
          Issue Type: New Feature
          Components: Streams/Writers
    Affects Versions: 1.4
            Reporter: Stefan Simik


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..

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (IO-182) add new APPEND parameter for writing string into files

JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/IO-182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637005#action_12637005 ]

Henri Yandell commented on IO-182:
----------------------------------

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

> add new APPEND parameter for writing string into files
> ------------------------------------------------------
>
>                 Key: IO-182
>                 URL: https://issues.apache.org/jira/browse/IO-182
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Streams/Writers
>    Affects Versions: 1.4
>            Reporter: Stefan Simik
>
> 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..

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (IO-182) add new APPEND parameter for writing string into files

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/IO-182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637056#action_12637056 ]

Stefan Simik commented on IO-182:
---------------------------------

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

> add new APPEND parameter for writing string into files
> ------------------------------------------------------
>
>                 Key: IO-182
>                 URL: https://issues.apache.org/jira/browse/IO-182
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Streams/Writers
>    Affects Versions: 1.4
>            Reporter: Stefan Simik
>
> 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..

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (IO-182) add new APPEND parameter for writing string into files

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/IO-182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niall Pemberton updated IO-182:
-------------------------------

    Fix Version/s: 2.x

> add new APPEND parameter for writing string into files
> ------------------------------------------------------
>
>                 Key: IO-182
>                 URL: https://issues.apache.org/jira/browse/IO-182
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Streams/Writers
>    Affects Versions: 1.4
>            Reporter: Stefan Simik
>             Fix For: 2.x
>
>
> 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..

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (IO-182) add new APPEND parameter for writing string into files

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/IO-182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benoit Lafontaine updated IO-182:
---------------------------------

    Attachment: patch-add-append-to-write-fonctions.patch

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

> add new APPEND parameter for writing string into files
> ------------------------------------------------------
>
>                 Key: IO-182
>                 URL: https://issues.apache.org/jira/browse/IO-182
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Streams/Writers
>    Affects Versions: 1.4
>            Reporter: Stefan Simik
>             Fix For: 2.x
>
>         Attachments: patch-add-append-to-write-fonctions.patch
>
>
> 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..

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.