Newbie Alert - Working with strings and files
Posted on 2004-04-05
As the title suggest I am new to delphi or programming in general (only been doing it for like 2 weeks now) so please bear with me as I do my best to explain my questions.
I need to write some text from a memo to a text file like this.
Starting Point: memo text here :Ending Point
where "Starting Point:" is the text from an edit box and ":Ending Point" is the literal phrase ":Ending Point"
In the file I will have lots of different blocks like the one above but each should begin with "Starting Point:" and end with ":Ending Point" so my first question is if there is an easy/efficent way to do this ?
My next question is now that I have all those blocks in the text file how can I extract just one of them from the file and show it back on my memo ?
And finally how can I delete one of the above blocks including the Starting Point: and :Ending Point stuff.
I hope 200 points is enough for this question because it's all I have left :)