THE THOUGHT CATALOGUE

The procedure below will show how to convert an array of numbers to a text file that is saved in a specified location. For the sake of depth, I will use a stack of numbers, converted to an array and then saved. The starter code below is for declaring a stack and saving some random values.

Code Editor

The command below converts the stack to an array, and then converts the array of objects to an array of string using Select(). This final list is stored as an array of string.

Finally, you can store this array of numbers in a text file, located on the Desktop: