in reply to Re^3: how to reset the input operater in while loop?
in thread how to reset the input operater in while loop?
On the other hand, if the files are small, and you happen to open and close them lots of times, then you find out that the process of opening and closing is also very costly, compared to having memory-resident data that you just use over and over within loops. I would not consider the time taken to open and close files to be "completely insignificant".
|
|---|