Re: save a list to a file
John Reppy <[email protected]> Wed, 9 Sep 2009 07:32:16 -0500
| Newsgroups | gmane.comp.lang.sml.smlnj |
|---|---|
| Message-ID | <[email protected]> |
There isn't any builtin mechanism for serializing data structures to a file. For simple data, I usually write something by hand, but for more complicated structures I use JSON files, which are supported by the SML/NJ Library, or ASDL (http://sourceforge.net/projects/asdl/). - John On Sep 9, 2009, at 6:54 AM, Daniel Kirsten wrote: > Hi, > > I want to save a list to a file. The list consists of tuples which > consist of integers, booleans, and integer lists. > > I know from Ullman's book how to save simple values to a file. > Well, I can write functions which save lists and tuples > member by member, but this is a bit tedious. > > Is there a simple solution for this problem? > > Best regards, Daniel > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Smlnj-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/smlnj-list > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july