Writing to a file
you need the fopen and fput command
$filetarget = fopen("filename.txt" , "w");
// w means open a file for writing only
fput($filetarget, "txt u wanna input \r\n");
Reading
$filetarget = fopen("filename.txt", "r");
// r allows u to read
fgets($filetarget, 1000);
// the 1000 is the length of line to read
or alternatively
$filetarget = fopen("filename.txt", "r");
while (!feof($filetarget))
{
$line = fgets($filetarget, 10000);
print $line;
}
fclose($filetarget);
thats the essentials making a form to go around it is trivial
good luck