Skip to main content
Solved

saving txt files in a loop with incremental file name

  • 20 September 2023
  • 2 replies
  • 88 views

Hi

I would like to save a txt file at each step of a loop. So I need to change the name of the saved file to not overwrite the previous one. 

Does someone have an example to share?

Thank you.

2 replies

Userlevel 5
Badge +3

How to open consecutively-named lens files using a ZPL macro – Knowledgebase (zemax.com)

Badge

Thank you Yuan :-)

Reply