This repository has been archived by the owner. It is now read-only.
Please sign in to comment.
now echoes back contents of file being created
- Loading branch information...
|@@ -1,6 +1,10 @@|
|$output = "testTEXT"; # store the string "testTEXT" as $output|
|file_put_contents("../sentiments.md","Text is getting appended then a line break \n", FILE_APPEND);|
|#non-append version (overwrite) on below line, uncomment to use|
|#file_put_contents("../sentiments.md","Text is getting appended then a line break \n"/*, FILE_APPEND*/);|
|#replace fopen, fwrite, and fclose with file_put_contents|
|# the parameters are (file to open/write, data to write, flags [FILE_APPEND] writes in append instead of overwrite mode|
|$output = fopen("../sentiments.md","r");|