I need to download a file from a url & read it contents so that it can be inserted into the database.
In php I'm able to do this with file_get_contents & for getting the required details preg_match.

How can this be done in C ?