You need to visit some
Learn C tutorial to get started with language and get ready to write the code.
As already written "translating" the code isnt an acceptable solution. You must analyze the code and understand the accomplished tasks like ready a file and using every line to do something.
tip: for splitting a string in C is the function
strtok but you must understand its usage.