Hi,

try something like this:

NSData data = ...; // your existing NSData object

try {
BufferedReader reader = new BufferedReader(new InputStreamReader (data.stream()));
        try {
                while (reader.ready()) {
                        String line = reader.readLine();
                        // process line
                }
        } finally {
                reader.close();
        }
} catch (IOException e) {
        // handle exception
}

Timo

Am 05.01.2009 um 20:56 schrieb James Cicenia:

I have an NSData object. I am using the sample AJAXFileUpload
which gives me an NSData object. I  am reading in a tab delimited
text file and was wondering how do I read line per line.

Thanks
James Cicenia
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/th-dev% 40onlinehome.de

This email sent to th-...@onlinehome.de

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to