xml 파일 끝에있는 추가 텍스트에서 일부 KB를 찾았습니다.
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".
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다