diff options
-rw-r--r-- | README.md | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -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 |