You need a Java service to write to a file. Someone has posted the code for that in one of the discussions here and/or on Advantage.
For writing the string, here’s a rough approach:
set an index var to 0
while index to end of string > 80
{
write chars from index to index+80
write a CR/LF (or just LF if Unix)
add 80 to index
}
write chars from index to end of string
write a CR/LF if desired
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB