Révision 1307
tmp/org.txm.utils/src/org/txm/utils/io/IOUtils.java (revision 1307) | ||
---|---|---|
209 | 209 |
|
210 | 210 |
public static void replaceAll(File file, String oldString, String newString) throws IOException { |
211 | 211 |
String text = getText(file, "UTF-8"); |
212 |
text.replace(oldString, newString); |
|
212 |
text = text.replace(oldString, newString);
|
|
213 | 213 |
IOUtils.write(file, text); |
214 | 214 |
} |
215 | 215 |
} |
Formats disponibles : Unified diff