--- a/project_files/HedgewarsMobile/Classes/NSStringExtra.m Fri Sep 24 15:14:40 2010 -0400
+++ b/project_files/HedgewarsMobile/Classes/NSStringExtra.m Sat Sep 25 03:04:22 2010 +0200
@@ -35,6 +35,11 @@
return YES;
}
+-(BOOL) appendToFile:(NSString *)path usingStream:(NSOutputStream *)os {
+ NSData *allData = [self dataUsingEncoding:NSUTF8StringEncoding];
+ [os write:[allData bytes] maxLength:[allData length]];
+ return YES;
+}
// by http://iphonedevelopment.blogspot.com/2010/08/nsstring-appendtofileusingencoding.html
-(BOOL) appendToFile:(NSString *)path usingEncoding:(NSStringEncoding) encoding {