Posts by Vanderson • 25 points
2 posts
-
2
votes2
answers169
viewsQ: How to read data from a file in c and treat as a string?
how to read data from a file in c and assign it to a string? file. c #include <stdio.h> #include <stdlib.h> #include <string.h> #define CONFIG "config.ini" void main() { char…
-
0
votes1
answer4313
viewsQ: How to delete the contents of a file in c?
How can I delete the contents of a file in c, which function should I use? #include <stdio.h> #include <stdlib.h> void main(){ char hello[13] = "Hello World!"; char path[12] =…