Thread: [Hecl-devel] files
Brought to you by:
davidw
From: David W. <dav...@gm...> - 2009-09-08 21:36:28
|
I have been doing some work on files for J2ME lately, mostly playing around to see what works and what doesn't. I have finally committed a bit of code, in the j2mefiles branch. It's incomplete and not really worth looking at, for the time being. Here's what I'm thinking: Utility commands, like list, rename, etc... will be normal commands that work like: file.list "file:///foobar/bee/bop" But open and close will return something that will be attached to a ClassCmd, in order to have a more 'OO' style: set f [file.open "......" r] set line [$f readline] set data [$f read 10] $f close Something like that. Thoughts? -- David N. Welton http://www.welton.it/davidw/ http://www.dedasys.com/ Sent from Padua, Veneto, Italy |