summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4431400..c52204b 100644
--- a/README.md
+++ b/README.md
@@ -9,5 +9,36 @@ definition in replace.h:
int replaceinfile(char *originalfile, char *destinationfile, char *placeholder, char *replacement);
// 0 = failure, 1 = success
````
+input.txt
+
+````
+
+Normal text file
+
+%PLACEHOLDER%
+%PLACEHOLDER%
+%PLACEHOLDER%
+
+With lines and whatever, %PLACEHOLDER%
+
+123%PLACEHOLDER%123
+ok %PLACEHOLDER% ok
+````
+
+output.txt
+
+````
+
+Normal text file
+
+replacement string
+replacement string
+replacement string
+
+With lines and whatever, replacement string
+
+123replacement string123
+ok replacement string ok
+````
See main.c for a usage example