summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaniel-Jones <daniel@danieljon.es>2018-10-14 13:27:47 +1030
committerdaniel-Jones <daniel@danieljon.es>2018-10-14 13:27:47 +1030
commit68ae296369e85de9cf10a66602d863245f1eee51 (patch)
tree8463c63250184232abad3d8c44f22619e9bcc742
parent29c5a14b2b25a1db797bb63d8c2596b91f156a0b (diff)
downloadreplace-68ae296369e85de9cf10a66602d863245f1eee51.tar.gz
replace-68ae296369e85de9cf10a66602d863245f1eee51.zip
example output
-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