ES2Writer.Create
Parameters
path | The path of the file we want to create or modify. |
settings |
(Optional) An ES2Settings object specifying settings for the ES2Writer |
Returns
Description
Creates an ES2Writer for the given file.
The created ES2Writer can be used in a using block, or disposed of manually using the Dispose method.
C#
Saving tags to an ES2Writer
1 2 3 4 5 6 7 8 |
using(ES2Writer writer = ES2Writer.Create("myFile.txt")) { // Delete some tags from our target file. writer.Delete("tagToDelete"); writer.Delete("anotherTagToDelete"); // Remember to save when we're done. writer.Save(); } |
JS
Saving tags to an ES2Writer
1 2 3 4 5 6 7 |
var writer : ES2Writer = ES2Writer.Create("myFile.txt"); // Delete some tags from our target file. writer.Delete("tagToDelete"); writer.Delete("anotherTagToDelete"); // Remember to save and dispose when you're finished. writer.Save(); writer.Dispose(); |