I have at flat dtabase file as shown above , each time , i try to delete one record from the file i am erasing the whole file , or getting errors10.00|val_time|email01@tech.com|email01 10.20|val_time|email02@cmv.com|email02 10.40|val_time|email03@air.com|email03 11.00|val_time|email04@drama.com|email04 11.20|val_time|email05@living.com|email05 11.40|val_time|email06@testrr.com|email06 12.00|val_time|email07@ball.com|email07 12.20|val_time|email08@lok.com|email08 12.40|val_time|email09@lome.com|email09 13.00|val_time|email10@faarik.com|email10
Is there someone who want to show me a simple method with file locking to remove the record which starts with --10.20 ..or any other bu using the first entry ??
the fields in the above file is (if you need it)$id2|$status|$fromemail|$eform
thank you !
edited: Fri Jun 13 15:17:58 2003 by jeffa - bogotified email addresses, removed unecessary br tags
In reply to Deleting a record from a flat text file by mikael-g
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |