Writing files when running unit tests in simulator

We are running unit tests using Simulator in uVision 5. Is it possible to write files when executing code in Simulator? If so, is there an example project I could reference?

Thanks

More questions in this forum