I am writing a code using for loop from i=0 to i=100 step 1. Every step I do the calculation I need to write the answer into text file so I want to end with 100 text files for the total calculation.
I am writing a code using for loop from i=0 to i=100 step 1. Every step I do the calculation I need to write the answer into text file so I want to end with 100 text files for the total calculation.
Do the calculation. Open a file. Write the result to the file. Close the file.
Repeat.
Which part of that do you need help with that wasn't covered already?
Why are you needing 100 files though? Why can't you have all 100 in a single file as it would be in order and still easy to see which step it was.
Doing the 100 files would end up either requiring a lot of useless lines of code or require a few complex functions and loops to accomplish 100 files because you would have to set up the program to auto name the 100 files itself. Unless you plan to enter the 100 file names yourself.