I need help in creating an array and saving its contents in an output file so they can viewed. The array I beileve I can create using a for loop howver I am having trouple saving it into an output file to be viewed later.
What type of array, 1D or 2D? Strings or numbers? If you convert numbers to strings, and write to a text file, you should have no problem viewing the file with any text editor like Notepad, Wordpad, or even Word. When writing, separate the elements with a space or comma or tab to make it readable. Don't forget to add new line constant at the end of every row when writing to a file.
This is something very basic but maybe that will help you
Be carefull, as it is coded, it writes the values in the array in a line, not a column, but if you want to write line after line as you are acquiring your datas, that can be an idea... 😉
Fell free to ask more questions
We have two ears and one mouth so that we can listen twice as much as we speak.