I can't seem to figure out from my 1,000 pages of PHP reading material exactly how fopen() and fclose() work. I figured out kinda about modes r, and w, and then I ran into something about how i need to specify how many bytes to read from the file... What if I just wanna read the whole file? Say I wanted to open a file called test.dat, add the content of $content to the end of the file, and then close it... How would I do that? Any help would be greatly appriciated!