Wouldn't this work?

: read-preferences ( -- hash )
      preferences-file run-file ;

: write-preferences ( hash -- )
      preferences-file [ . ] with-file-writer ;

Slava

On 29-Feb-08, at 9:23 AM, Nikhil Marathe wrote:

> Hello,
>
> I was wondering if anybody has already added a preferences  
> vocabulary similar to Python's ConfigParser ( http:// 
> docs.python.org/lib/module-ConfigParser.html )
> If not, well I'm already hacking on it.
>
> Nikhil.
>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ 
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to