我有一個數組,我用它寫入文件寫入文件:在-iPhone不要的符號
memoryString=[memoryString stringByAppendingString:WhatsTheTimeNow];
[memoryFile addObject:memoryString];
[memoryFile writeToFile:fullFileName atomically:NO];
日誌是確定的,但我得到的日誌文件也一些符號:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<string> Touch Event: leftEye --- ר10 10:33:10---2011</string>
<string> Sensor Event: rightHand --- א10 10:33:26---2011</string>
<string> Sensor Event: rightHand --- ר10 10:33:29---2011</string>
<string> Sensor Event: rightLeg --- א10 10:33:32---2011</string>
<string> Touch Event: leftEye --- ר10 10:33:34---2011</string>
<string> Touch Event: leftEye --- א10 10:33:36---2011</string>
</array>
</plist>
的問題是,我不希望出現這種情況<string>
,在開始和結束,以及3條開通線路<array>
符號。 我該如何擺脫這個符號?
非常感謝。