To get a String and write it to a file, a sequence of function calls such as this would work:
1> cin ;input the string from the user
2> fopen ;open a file where you would store the string
3> fwrite ;write the string into the file
4> fclose ;close the file
and you are done!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.