Repository files navigation
A program to parse files and generate them as parsed outputs
clone it into your local repository
run it using any c compiler
give command line arguments
argv[1] is for filename, argv[2] for parsing, argv[3] for parsing with what, argv[4] is a bool for determining what you want to do
argv[2] and argv[3] cant be string (if you do it gets first char)
argv[4] i a bool that checks if you want to replace or parse. 1 for replace, 0 for parse
if no filename is given it will give error thus others are optional
default values are ';' for argv[2], '\0' for argv[3] and '0' for argv[4]
it will generate a file named "parsedfile.txt" in the same directory
gcc fileparser.c -o "executableName"
./"executableName" filename.txt ; \n 1
add more parsing options like finding a string and then replacing with a string
add output format option
make a proper executable with makefile or so
split code into functions and use an utils/src folder
You can’t perform that action at this time.