[Stackoverflow] [Progress OpenEdge ABL] Openedge add text at the beginning of an existing text file

Status
Not open for further replies.
B

BobNoobGuy

Guest
Found some kb on append text at the end of an xml file

Progress KB - How to append text at the end of an XML file?

Code:
OUTPUT TO VALUE ("cust.xml") APPEND.
/* Append a new line character to the end of the file */
PUT UNFORMATTED "~n ".
/* Append some text after the new line character */
PUT UNFORMATTED "this is the appended text".
OUTPUT CLOSE.

is there similar solution to add text at the beginning? or I have to resort to import the file and rewriting it to a new file?

thank you

Continue reading...
 
Status
Not open for further replies.
Top