> I'd like to read the first line of a csv file (on the local
> filesystem) in order to get the names of the fields. I will then use
> them in a drop-down menu.
> Until now I read the entire file with the core function LoadFile which
> takes care of the type of the browser. I then search the texte for the
> first "\n", and split according to the ";".
> But it's kind of stupid if the file is large !!

Unfortunately, there's no easy way to do incremental, buffered file I/
O... without resorting to low-level browser-specific code.  However,
most browsers don't have the needed API, or are hobbled by security
restrictions that make it impractical at best, and impossible at
worst.

I'd stick with using loadFile() followed by .split('\n')

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to