The only idea I have is to substitute fprintf with another method that'll write to a string.
Forum Rules
Bookmarks