rawdata Posted June 8, 2007 Share Posted June 8, 2007 What I need to do is to look at each line in the text file, find the userid that an administrator inputs into a form, and delete that line so that a new line can be appended with updated info. Or, if anyone knows of an easier way to modify info on a certain line in a text file, I'm all ears. Please excuse my noobiness, I'm just having fun learning this stuff. Rawdata Link to comment https://forums.phpfreaks.com/topic/54683-trying-to-modify-a-text-file/ Share on other sites More sharing options...
per1os Posted June 8, 2007 Share Posted June 8, 2007 www.php.net/strstr or www.php.net/ereg www.php.net/fopen www.php.net/fread <--- here you will find how to loop through a file. www.php.net/fwrite www.php.net/fclose Check out those, they all should have plenty examples. Link to comment https://forums.phpfreaks.com/topic/54683-trying-to-modify-a-text-file/#findComment-270445 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.