I have a text file that I am writing to and reading from. I would like to set it up so that I can remove items from the text file.
This is the script that writes to the file:
<?
$FileName = "data.txt";
$FilePointer = fopen ($FileName, "a");
fwrite ($FilePointer, "$Array[LinkStart]$Array[URL]$Array[LinkMid]\t$Array[Title]$Array[LinkEnd]\t$newDescription\t$Array[SourceStart]$Array[TheSource]$Array[EndP]\n\n\n");
fclose ($FilePointer);
?>
I then read and print the file using tab delineator. To be able to delete items I will have to make this into an array? If so how can I do that? Can I create the array using the "\n\n\n" that is at the end of each submission?
Any help will be appreciated!
Mark