Loading video...
Writing to Files
fwrite()is used to write the contents of a string to a file that has been opened for writing. It has an alias:fputs().- In order to write to a file with
fwrite(), an access mode specifier allowing writing must be provided tofopen()when opening the file to be written to. - Two commonly used write access mode specifiers are:
'a'(append) - open for writing only; place file pointer at the end of the file; attempt to create file if it does not exist‘w’(overwrite) – open for writing only; delete file contents; place file pointer at beginning of file; attempt to create file if it does not exist
- Additional Resources:
Writing to Files
Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.


































Start Learning Now
Our free lessons will get you started (Flash® 10 required).
Sign up for Educator.comGet immediate access to our entire library.
Features Overview