如何解决Openedge 在现有文本文件的开头添加文本
在 xml 文件末尾的附加文本中找到了一些知识库
https://knowledgebase.progress.com/articles/Article/P8379
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.
有没有类似的在开头添加文字的解决方案?或者我必须求助于导入文件并将其重写为新文件?
谢谢
解决方法
你将不得不阅读它并重新编写它。这是一种方法:
define variable fileBody as longchar no-undo.
copy-lob from file "test" to fileBody.
fileBody = "new first line~n" + fileBody.
copy-lob from fileBody to file "test".
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。