I need to write a string to a file for Bartender to trigger a label print. We already have this ability in another method directive which runs a bunch of custom code to do so, but it seems overly complicated and possibly not best for upgrades.
In an attempt to better utilize more of the base tools in the Workflow Designer, is there a way to write a string (query result) to a text file on the server?
@Adam I use StreamWriter to do this. I am sure the code came from here somewhere.
var fileLocation = "\\server\share\file";
var outputLine = "stuff";
using (var TCFile = new System.IO.StreamWriter(@fileLocation, true))
{
TCFile.WriteLine(outputLine);
TCFile.Close();
}