File.new File.open Errno::ENOENT

You are welcome!

I would also recommend to learn how to post your code correctly in the forum:
[How to] Post correctly formatted and colorized code on the forum? - Developers - SketchUp Community

:innocent:
Have a nice day!