possowski Posted September 28, 2018 Share Posted September 28, 2018 I plan to modify the add_quote.php and quote.txt file into a grocery list that can be saved then printed. I looked in the online php manual and found a clear fcn (->clear) that seems to be able to clear an array, but can it also clear the contents of the txt file? Link to comment Share on other sites More sharing options...
Larry Posted September 28, 2018 Share Posted September 28, 2018 It's not clear to me what function you're referring to, but I'm pretty certain the answer would be "no". The easiest way to clear the contents of a text file would be to delete the text file and then recreate it. Link to comment Share on other sites More sharing options...
possowski Posted September 28, 2018 Author Share Posted September 28, 2018 thanks, I will look at using either an array or simple data table. Link to comment Share on other sites More sharing options...
Recommended Posts