Android Utililty Methods Text File Replace

List of utility methods to do Text File Replace

Description

The list of methods to do Text File Replace are organized into topic(s).

Method

voidreplaceAFileText(String fileName, String word, String replaceWord)
Replace a File text for a new one.
String tempFileName = fileName + "_temp";
BufferedWriter writer = new BufferedWriter(new FileWriter(
        tempFileName));
BufferedReader reader = new BufferedReader(new FileReader(fileName));
String linha;
while ((linha = reader.readLine()) != null) {
    if (linha.contains(word)) {
        linha = linha.replace(word, replaceWord);
...