Prepare to change all FILE* and NSFileHandle* to NSMutableString.
Change some function to Objective-C style.