X
Xavier Hanin
Hi all,
I'm brand new to ruby, and I'm looking for a way to open a file, read
its content and modify it. I've seen that I can open a file in read
write mode, but I can't figure out how it works. If I want to replace
all occurences of 'search' by 'replace', for instance, what do I have to
do?
Searching for an answer to this question, I've found scripts using gsub!
What is this exclamation mark?
Thanks in advance for your help!
Xavier
I'm brand new to ruby, and I'm looking for a way to open a file, read
its content and modify it. I've seen that I can open a file in read
write mode, but I can't figure out how it works. If I want to replace
all occurences of 'search' by 'replace', for instance, what do I have to
do?
Searching for an answer to this question, I've found scripts using gsub!
What is this exclamation mark?
Thanks in advance for your help!
Xavier