FROM : Stefan Johansson
DATE : Wed Oct 23 23:42:01 2002
I did parse a 100Mb file once (into a NSString) when I wanted to do like a
quick and dirty semi-database thing. Ok, it wasn't that fast (for obvious
reasons) but it did work.
I think even NSMutableString would handle such a large file. I'm not sure if
I tried that in the same spin as above, but I do know of someone who did (if
I'm not completely wrong).
/Stefan
On 2002-10-23 23.39, "Sean Kelly" <<email_removed>> wrote:
> I'm really not sure how it works. I've never had any problems, but the
> files I have dealt with haven't been extremely large. Sorry,
>
> Sean Kelly
> www.skti.org
>
> On Wednesday, October 23, 2002, at 05:10 PM, Mel Walker wrote:
>
>> On Wednesday, October 23, 2002, at 02:36 PM,
>> <email_removed> wrote:
>>>
>>> More generally, for files with any line break type, not just \r, open
>>> it as a string:
>>>
>>> NSString *fileString = [NSString
>>> stringWithContentsOfFile:@"path/to/file.txt"];
>>
>> How big a file can this handle? Does it memory-map large files? I know
>> that NSString is immutable, so is seems reasonable that it be able to
>> load relevant sections of a file dynamically, but the documentation
>> never mentions any size limits.
>>
>> --
>> Mel Walker <<email_removed>>
>> "You keep using that word. I don't think it means what you think it
>> means."--Inigo Montoya
>>
>> _______________________________________________
>> MacOSX-dev mailing list
>> <email_removed>
>> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>>
>
> _______________________________________________
> MacOSX-dev mailing list
> <email_removed>
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>
>
DATE : Wed Oct 23 23:42:01 2002
I did parse a 100Mb file once (into a NSString) when I wanted to do like a
quick and dirty semi-database thing. Ok, it wasn't that fast (for obvious
reasons) but it did work.
I think even NSMutableString would handle such a large file. I'm not sure if
I tried that in the same spin as above, but I do know of someone who did (if
I'm not completely wrong).
/Stefan
On 2002-10-23 23.39, "Sean Kelly" <<email_removed>> wrote:
> I'm really not sure how it works. I've never had any problems, but the
> files I have dealt with haven't been extremely large. Sorry,
>
> Sean Kelly
> www.skti.org
>
> On Wednesday, October 23, 2002, at 05:10 PM, Mel Walker wrote:
>
>> On Wednesday, October 23, 2002, at 02:36 PM,
>> <email_removed> wrote:
>>>
>>> More generally, for files with any line break type, not just \r, open
>>> it as a string:
>>>
>>> NSString *fileString = [NSString
>>> stringWithContentsOfFile:@"path/to/file.txt"];
>>
>> How big a file can this handle? Does it memory-map large files? I know
>> that NSString is immutable, so is seems reasonable that it be able to
>> load relevant sections of a file dynamically, but the documentation
>> never mentions any size limits.
>>
>> --
>> Mel Walker <<email_removed>>
>> "You keep using that word. I don't think it means what you think it
>> means."--Inigo Montoya
>>
>> _______________________________________________
>> MacOSX-dev mailing list
>> <email_removed>
>> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>>
>
> _______________________________________________
> MacOSX-dev mailing list
> <email_removed>
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>
>
| Related mails | Author | Date |
|---|---|---|
| Tom Meehan | Oct 23, 09:48 | |
| Jeff Disher | Oct 23, 10:24 | |
| Finlay Dobbie | Oct 23, 12:17 | |
| Sean Kelly | Oct 23, 12:20 | |
| Mel Walker | Oct 23, 14:14 | |
| Sean Kelly | Oct 23, 14:40 | |
| Stefan Johansson | Oct 23, 23:42 | |
| Stefan Johansson | Oct 23, 23:50 | |
| Robert Cerny | Oct 24, 04:54 | |
| Mel Walker | Oct 24, 09:27 | |
| john marriott | Oct 25, 14:47 |






Cocoa mail archive

