Skip to main content
Solved

saving txt files in a loop with incremental file name

  • September 20, 2023
  • 2 replies
  • 181 views

Forum|alt.badge.img

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.

Best answer by yuan.chen

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

2 replies

yuan.chen
Zemax Staff
Forum|alt.badge.img+3
  • Zemax Staff
  • Answer
  • September 20, 2023

Forum|alt.badge.img
  • Author
  • Visible
  • September 20, 2023

Thank you Yuan :-)