Hello,
What i need to do is edit a text file. I have input in the file like this:
text1
*text2
text3
*text4
text5
What i need to do is remove that asteric(*) from *text4. I do NOT want to remove the asteric from *text2. How do i do this? i assume fopen($filename 'a'); but what would the syntax of removing that asteric be? Im thinking i need to "find" *text4, then somehow delete the 1st character on that line. I appreciate any and all comments/responses
What i need to do is edit a text file. I have input in the file like this:
text1
*text2
text3
*text4
text5
What i need to do is remove that asteric(*) from *text4. I do NOT want to remove the asteric from *text2. How do i do this? i assume fopen($filename 'a'); but what would the syntax of removing that asteric be? Im thinking i need to "find" *text4, then somehow delete the 1st character on that line. I appreciate any and all comments/responses