I am building a app for win 8.1 store and i need to create some files during app execution. how this is possible only by js or WinJS. i found command for writing and reading but not for creating.
You can use:
folder.createFileAsync(
fileName,
Windows.Storage.CreationCollisionOption.replaceExisting,
Windows.Storage.Streams.UnicodeEncoding.utf8
);
the folder object can be a StorageFolder object, like for example:
Windows.Storage.ApplicationData.current.localFolder