Package javatapas.io
Class ReplaceTextWithinFile
java.lang.Object
javatapas.io.ReplaceTextWithinFile
public class ReplaceTextWithinFile extends Object
Replace text inline within a file.
Published at https://www.javatapas.com/io/Java-Replace-Text-Within-File.html
Javadoc at https://www.javatapas.com/docs/javatapas/io/ReplaceTextWithinFile.html
Published at https://www.javatapas.com/io/Java-Replace-Text-Within-File.html
Javadoc at https://www.javatapas.com/docs/javatapas/io/ReplaceTextWithinFile.html
- Version:
- 2021-05-20
- Author:
- Kodiak Brown
-
Constructor Summary
Constructors Constructor Description ReplaceTextWithinFile()
-
Method Summary
Modifier and Type Method Description static void
replaceTextWithinFile(String inputFile, String oldText, String newText)
-
Constructor Details
-
ReplaceTextWithinFile
public ReplaceTextWithinFile()
-
-
Method Details
-
replaceTextWithinFile
public static void replaceTextWithinFile(String inputFile, String oldText, String newText) throws IOException- Parameters:
inputFile
- The file name whose base name is being returned.oldText
- The text to search for within the file.newText
- The text to replace the oldText within the file.- Throws:
IOException
-