我是Ruby的新程序员.有人可以举一个关于用Ruby中的r +,w +,a +模式打开文件的例子吗?他们和r,w,a有什么区别?
请解释一下,并提供一个例子.
ruby posix file
file ×1
posix ×1
ruby ×1