U
Uros
Dear ruby users,
I have stumbled upon a problem in my first ruby program. Upon searching
I still could not find a solution, I guess it's my lack of knowledge to
blame.
What I'm trying to achive is opening a text file, then search the text
file for specific strings and then replacing that strings with other
strings. I created an array with original strings, and and array with
replaced strings. The array are of the same size. Then once the strings
are replaced, the new file is to be writen.
I can't figure out what would be a good procedure for searching for a
specific string in an array.. all the other things I need to do, I
think I can manage...
Anyone can help me with that? Oh, did I mention that I'm new to ruby..
I have stumbled upon a problem in my first ruby program. Upon searching
I still could not find a solution, I guess it's my lack of knowledge to
blame.
What I'm trying to achive is opening a text file, then search the text
file for specific strings and then replacing that strings with other
strings. I created an array with original strings, and and array with
replaced strings. The array are of the same size. Then once the strings
are replaced, the new file is to be writen.
I can't figure out what would be a good procedure for searching for a
specific string in an array.. all the other things I need to do, I
think I can manage...
Anyone can help me with that? Oh, did I mention that I'm new to ruby..