ES2.LoadStack
Parameters
T | The type of the data in the Stack we want to load. Must be on the Supported Types list. |
path |
The path where our data is stored. For more information, see Paths. |
settings |
Optional. A user-created ES2Settings object containing options not specified in path. |
Returns
Stack<T> | Our loaded Stack. |
Description
Loads a Stack containing data of type T from the specified path.
C#
1 2 3 4 5 6 7 8 9 |
// Create a Stack of int values and save it. Stack myStack<int> = new Stack<int>(); myStack.Push(1); myStack.Push(2); ES2.Save(myStack, "myFile.txt?tag=myStack"); // Load the Stack and re-assign it to our variable. myStack = ES2.LoadStack<int>("myFile.txt?tag=myStack"); |
JS
1 2 3 4 5 6 7 8 9 |
// Create a Stack of int values and save it. var myStack = new Stack.<int>(); myStack.Push(1); myStack.Push(2); ES2.Save(myStack, "myFile.txt?tag=myStack"); // Load the Stack and re-assign it to our variable. myStack = ES2.LoadStack.<int>("myFile.txt?tag=myStack"); |