Save a specific file in a LVS script

In the middle of my LVS script, I would like to save some information in a specific file, but it does not generate the my_info.txt file.
How do to proceed to write such a file ?

File.open("my_info.txt", "w") do |file|
   file.puts("my information to try ...\n")
end

Thank you, BRgds,
Laurent

Comments

  • I think my_info.txt exists where you started KLayout.
    For example,

    To change the current working directory...

  • Thank you Sekigawa, you are right : it is saved to the KLayout directory.
    I finally solved it this way (as I save the LVS result) :

    File.open(File.join(File.dirname(RBA::CellView::active.filename), source.cell_name+"_myInfo.txt"), "w") do |file|
    

    Regards,
    Laurent

Sign In or Register to comment.