in reply to Re: Finding item in a text file
in thread Finding item in a text file

The program will generate an entry on the text file, something like:
<?--1-1--> Something Here or html file. </?--1-1-->

See this begging tag "<?--1-1-->" and end tag" </?--1-1-->" already exist on the text file.
I want the program to check if there is a a entry like that in the text file, if it find it
delete it and print the new one, I hope I have explaing it better, thanks again!!

Replies are listed 'Best First'.
Re^3 Finding item in a text file
by Aristotle (Chancellor) on Oct 18, 2002 at 20:59 UTC
    I see no place these numbers inside the tags are coming from in your script. Where do you use them in your code? I think you need to post at least some of the code in that if() block to make your intent clearer.

    Makeshifts last the longest.