Writing string to a file in java
<p>I have a file which contains sql statements.
Now in this file, I want to add a word "collate" after every 'char()' and 'varchar()' in the file.
How do you do that?</p>
