I want to write a program that takes a file having comments and removes

the comments and prints the c source code file into the other file
please give me the link or the source code itself