That'a because using plain text files is usually a 'worst case scenario'.
Plaintext files can be read by many scripts, but only one script can write to it at a time. That makes it allmost unusable for database-like applications.
The simplest way is to create a file is like this:
forums|www.phpbuilder.com
php|www.php.net
pengiuns|www.penguinpower.com
You can then open that file using fopen()
and read from it line by line, using fgets().
Then you can get the data from each line using split():
list($sSubject, $sURL) = split("|", $line_from_file);
Then you can compare $sSubject to the subject you are looking for.
If the $sSubject matches, redirect to the URL.
If not, continue to the next line from the file.