lundi 29 octobre 2018

Reading content from a file and storing it to String in C

I've written a simple http server in C and am now trying to implement HTML files. For this I need send a response, containing the content of the HTML file. How do I do that best? Do I read the file line by line, and if so how do I store them in a single string? Thanks already!




Aucun commentaire:

Enregistrer un commentaire