now in my apprach i read the dictionary to two arrays and then search in the array for each word to replace. any other better solution? I'd appreciate your helps.dictionary: 1 dog 2 cat 3 chased 4 the text file: the dog chased my cat. output: 4 1 3 my 2.
In reply to search and replace by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |