Very basic question? Help needed :-(=

[email protected] (Unknown Sender) Wed, 25 Oct 2000 09:44:10 +0200
Newsgroups php.dev,php.template
Organization KUD Kontrabant
Message-ID <[email protected]>
Hello,

I have for most of you very small problem.
Let say I have a file callad "rec". The entries in it  are looking like
this:
X  : Y : Z
-------
11;aa;bb
22;cc;dd
33;ee;ff

I know how to kreate file like this, but
Now I'd like to find the entry let say with $X==22.
and
1. ------I'd like to get the $Y and $Z.
2.------Let say I'd like to change the $Z
3.------When I finish, how can I erase the file

THX

Regards
Janez Vrenjak

--

                          \\\___///
                         \\  - -  //
                          (  @ @  )
+-----------------------oOOo-(_)-oOOo---------------------------+
|                                                               |
|                     WWW.KUD-KONTRABANT.SI                     |
|                         Janez Vrenjak                         |
|                 mailto:[email protected]                |
|                    tel.: +386-(0)41-406 089                   |
|                                                               |
+------------------------------------Oooo-----------------------+
                      oooO          (    )
                     (    )          )  /
                      \  (           (_/
                       \_)
The world is not octal despite DEC.