I've been wondering whether the C language can copy files from the internet into the user's device, and whether it can process web pages and databases or not..
Yes to all of that. Check Beej's guide for socket programming to get an idea of how one would access internet data. Past that it's a somewhat simple matter of matching the expected request and response formats for getting a hold of the data you want.
Databases are different, obviously. While it's not completely unreasonable to write ad hoc code for internet access, it's drastically easier to use one of the many existing libraries out there when it comes to databases.
Though I'm curious why you want to use C for this.
However, what should I do if my server's operating system is Linux??
Totally irrelevant. In fact, targeting Linux might even make the coding easier. ;)
Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401