|
|
Question : Ruby program to open and read text file and remove quotes.
|
|
HI, I am a complete beginer in Ruby. I want to find out how to open a text file, read every line and remove each occurance of quotes (") in the file using Ruby code.
Thanks
|
Answer : Ruby program to open and read text file and remove quotes.
|
|
sorry, forgot to answer the second part of the question: the file will be created, if it is there allready it will be deleted first, unless you append to it (use "a" instead of "w" on opening the file)
|
|
|
|
|