Hi
I am not sure what your exact need is. Hope this will help as a starter. Here is how to stringify the JSON format file and parse that back to array items.
.....getFileAsync("datafile1.txt").then(function (gotFile) { return Windows.Storage.FileIO.readTextAsync(gotFile) })
.done(function (d) {
if ((d !== "") && (d !== null) && (d !== undefined)) {
dataArray = obj.concat(JSON.parse(d));
}});.
.
.
.
.
.
if (dataArray.length !== 0) {
mystr = JSON.stringify(dataArray);
.
.
Windows.Storage.FileIO.writeTextAsync(sampleFile, mystr).done(function () { });
-Karthika
karthika