返回顶部

收藏

File Inquiries

更多
# tests whether a file exists before opening it

File::open('file.rb') if File::exists?( 'file.rb' )

标签:Ruby,文件

收藏

0人收藏

支持

0

反对

0

»更多 您可能感兴趣的代码
  1. 2016-09-10 16:43:14Masks for chmod by 好好学习啊
  2. 2016-09-27 14:19:11Backing Up to Versioned Filenames by 永明
  3. 2016-09-29 15:19:03Reading the Contents of a File by Jamin
  4. 2016-11-06 09:22:00If you want to add extra directories to this $: by digua
  5. 2016-11-09 09:00:54Change times by jeffsui
  6. 2016-12-03 09:10:01Read a binary file by byte by 永明
  7. 2016-12-05 12:24:31just the local filename by zetaliang
  8. 2016-12-26 09:04:24Read one byte from a binary file by 杨洋
  9. 2016-12-28 14:01:03Write to a string by zetaliang
  10. 2013-05-15 21:51:33ruby检测文件大小的代码 by huwei
  11. 2016-02-19 21:10:00you open up an I/O stream with dir by Loli控

发表评论