So I have text file containing:
Harry Potter and the Deathly Hallows###J. K. Rowling###2007
And I have to output it to the FreePascal program in the following form
J.K.Rowling "Harry Potter and the Deathly Hallows" 2007 year
I know how to read from file but I don't know how to make it like in the previos form
Can someone help me? I would be very thankful.
If
TStringList
in freepascal is the same as in Delphi, then this would do the trick:Update, as commented by @TLama, freepascal
TStringList
does not have aLineBreak
property.Try this instead (using
ReplaceStr
in StrUtils):