Create a tempfile without opening it in Ruby

前端 未结 4 2000
悲&欢浪女
悲&欢浪女 2021-01-04 21:11

Is there a way to create a tempfile, without having it opened? I have to run an executable, redirect it\'s output to a file, and then read & parse that. Everything creat

4条回答
  •  走了就别回头了
    2021-01-04 21:30

    Is using FileUtils.touch acceptable solution? You can touch a file and delete it once you are done with whatever you want.

提交回复
热议问题