ES2.GetTags
public static string[] GetTags(string file, ES2Settings settings=null)
Parameters
[table th=”0″]file,”The file in which to look for tags.”
settings,”Optional. A user-created ES2Settings object containing options not specified in path.”[/table]
Returns
[table th=”0″]string[],”The list of tags within this file.”[/table]
Description
Returns the names of all of the tags contained in this file.
Note: Tags may not necessarily be retrieved in the order they are contained in the file.
C#
// Save three tags. ES2.Save(123, "file.txt?tag=tag1"); ES2.Save("a", "file.txt?tag=tag2"); ES2.Save(456, "file.txt?tag=tag3"); // 'tagsInFile' will be an array containing 'tag1', 'tag2' & 'tag3'. string[] tagsInFile = ES2.GetTags("file.txt");
JS
// Save three tags. ES2.Save(123, "file.txt?tag=tag1"); ES2.Save("a", "file.txt?tag=tag2"); ES2.Save(456, "file.txt?tag=tag3"); // 'tagsInFile' will be an array containing 'tag1', 'tag2' & 'tag3'. var tagsInFile : String[] = ES2.GetTags("file.txt");