<?php $submissions = "submissions.txt"; $handle = fopen($submissions, 'w'); $handle2 = fopen($submissions, 'r'); $data = "and now is it working?!!?!?!?! \n"; fwrite($handle, $data); $data2 = "I am pissed that this program either reads or writes... but never both."; fwrite($handle, $data2); $data3 = "Now I have to figure out how to not make it overwrite. "; fwrite($handle, $data3); $content = fread($handle2, filesize($submissions)); print $content; fclose($handle); fclose($handle2); ?>