Posts by MarceloCosta • 5 points
2 posts
-
0
votes1
answer42
viewsQ: Reading from a file
I’m trying to read the contents of a file to a string, then use that same string in some operations. At this time I have the following function (at this time just read and print the content): char*…
casked MarceloCosta 5 -
0
votes1
answer41
viewsQ: Copying Files using System Calls
I’m having trouble using write(), read(), close(), open() functions to copy a text file to a new file (previously created). After some research I obtained the following code: #include…
casked MarceloCosta 5