You are viewing a single comment's thread from:

RE: Easy Coding: Ruby File I/O

in #ruby6 years ago

just want to add on r+, w+ and a+:

r+: will open a file for both reading and writing -- file must exist
w+: will create an empty file for both reading and writing
a+: will open file for reading and appending -- file is created if it does not exist

thanks @privateger

Sort:  

Thanks for your comment!
I have only just now seen it :)

Coin Marketplace

STEEM 0.28
TRX 0.11
JST 0.031
BTC 68763.18
ETH 3770.45
USDT 1.00
SBD 3.76