How to delete comments in a file that begin with //?

    1 answer 1

    There is a function file() , gets the contents of the file as an array line by line. Cycle through and delete if there is a '//' at the beginning.