Révision 1283
tmp/org.txm.utils/src/org/txm/utils/io/IOUtils.java (revision 1283) | ||
---|---|---|
207 | 207 |
return new BufferedOutputStream(new FileOutputStream(file, append)); |
208 | 208 |
} |
209 | 209 |
|
210 |
public static void replaceAll(File file, String oldKey, String string) throws IOException {
|
|
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 | 213 |
IOUtils.write(file, text); |
213 | 214 |
} |
214 | 215 |
} |
Formats disponibles : Unified diff