I am new to the SML of NJ language and have not come across this yet. After my function is done doing what it is doing i need it to either write true or false into an outfile that the function takes in as input. So if my function is
fun thing (inFile : string, outFile : string)
I need to write true or false according to a different function into the outFile. How would I go about writing into a file in SML?
To avoid confusion all I want to know is how to be able to write true of false to the outFile descirbed in the function.