Recently, I had a requirerement in one of my project to save some html data in a file. I have previously worked with Ascii and other File related Classes.
This time, as I was exploring within the AX metadata, I found this class called Bindata. It's sort of easy and very fast when it comes to save some data to a file using BinData. Here's a job which shows Bindata Class in action.
The job simply builds a html string and saves it to file using Bindata class.