Output preprocessed files from Rewriter

Hi List,

I am using Rewriter to do some source-to-source transformation.
It seems that Rewriter basically outputs unpreprocessed source code. I am curious how I can output preprocessed code after my transformation.

Is there any functionality in Rewriter to print out preprocessed code?

I appreciate your help.

Best,
Kihong