[mashup-dev] [jira] Resolved: (MASHUP-53) File Object appends
rather than rewrites
Thilina Gunarathne (JIRA)
jira at wso2.org
Mon Jun 4 09:06:03 PDT 2007
[ http://www.wso2.org/jira/browse/MASHUP-53?page=all ]
Thilina Gunarathne resolved MASHUP-53.
--------------------------------------
Resolution: Fixed
Added new functions as follows...
void openFileForReading();
void openFileForWriting();
void openFileForAppending();
We can also reduce the following 3 functions to a single function by introducing a int parameter as follows, though I have a little preference to the above 3 functions...
void openFile(int value);
value=1 for reading, 2 for writing, 3 for appending...
> File Object appends rather than rewrites
> ----------------------------------------
>
> Key: MASHUP-53
> URL: http://www.wso2.org/jira/browse/MASHUP-53
> Project: WSO2 Mashup Server
> Issue Type: Bug
> Environment: Nightly-buidl 5/29; Vista
> Reporter: Jonathan Marsh
> Assigned To: Thilina Gunarathne
> Fix For: alpha_1
>
>
> var file = new File(storepath + name + ".xml");
> if (!file.exists)
> file.createFile();
> file.write(value.toXMLString());
> file.finishWriting();
> First call works fine, subsequent calls append data to the existing file rather than overwriting it.
> This is a new bug in this (or recent) build(s).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://www.wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the Mashup-dev
mailing list