How i can read different rows in a txt file
i need to build specific counter
let's say i have some number of affiliates, each with unique id,
they all are reffering people to my site, using these id's
i want to give to each of them weekly stats, for the referred people
the way i see the things is,
they send the traffic to mydomain.com/partner.php?id=555
partner.php is forwarding to mydomain.com but before that it opens txt file reading the current value for referred people by ID 555, adding one, and saving it.
Ok, but i want in this file to save the values for all IDs
yes i can use different txt files, for each id..... but prefer to stay with only one txt file
so i need a way to recognize the values for the different IDs, and read only the one i need.