Skip navigation.
 
mlRe: Best way to save a simple text file?
FROM : I. Savant
DATE : Fri Nov 16 19:05:43 2007

> However, I was wondering... is it really necessary for me to convert my
> string to an NSData object before saving it? Isn't there any other way
> to do it? Also, what if I would like to support multiple languages (i.e.
> multiple encoding??)... right now the string is converted to UTF8...


  How about NSString's -writeToURL:atomically:encoding:error:  (10.4
and above only)?

--
I.S.

Related mailsAuthorDate
mlBest way to save a simple text file? Jean-Nicolas Joliv… Nov 16, 19:02
mlRe: Best way to save a simple text file? I. Savant Nov 16, 19:05
mlRe: Best way to save a simple text file? Jean-Nicolas Joliv… Nov 16, 19:19
mlRe: Best way to save a simple text file? Ali Ozer Nov 16, 19:23
mlRe: Best way to save a simple text file? Douglas Davidson Nov 16, 19:25
mlRe: Best way to save a simple text file? I. Savant Nov 16, 19:30
mlRe: Best way to save a simple text file? Aki Inoue Nov 16, 19:31
mlRe: Best way to save a simple text file? Jean-Nicolas Joliv… Nov 16, 20:35
mlRe: Best way to save a simple text file? Martin Wierschin Nov 17, 01:56
mlRe: Best way to save a simple text file? Ali Ozer Nov 17, 02:21
mlRe: Best way to save a simple text file? Martin Wierschin Nov 17, 04:37