BPM - Write a basic file?

I’m starting the process of connecting Epicor to Bartender for labels. We think having Epicor generate text files will be a good solution to work with Bartender.

Question: What is the easiest way to generate a text file on a method? Some basic ABL code? Any examples for a very simple way to write “text.txt” with the content “here is a test”?

Thank you.

Here is a basic solution, if anyone ever needs one.

define variable fileLocation as character init ‘’.
define variable outputLine as character init ‘’.

assign fileLocation = “C:\temp\test.txt”.

output to value(fileLocation).

outputLine = “here is a test”.

message outputLine.

Output close.