Hey Sam, I've thought about storing the data in the SQL database, but since I will also be using this editor to edit .css files I thought it would be more appropriate to have a function that allows me to read or write to these files as well.
For defining the functions with lib.ml, I was wondering whether Links uses the (the Std module<http://ocaml-extlib.googlecode.com/svn/doc/apiref/Std.html> seemed of particular interest) extended library for OCaml or whether I'm going to have to work with just out_channel and in_channel. I don't know too much OCaml (at all) so any pointers here would be much appreciated. Thanks, Simon On Sat, Mar 6, 2010 at 12:18 AM, Sam Lindley <[email protected]> wrote: > Hi Simon, > > Links doesn't support reading or writing files. You could add that > functionality by defining appropriate functions in the OCaml file 'lib.ml > '. > > I don't know your use-case, but alternatively you might simply store the > data in an SQL database rather than a file. > > Sam > > Simon Vansintjan wrote: > >> Hello all, >> >> I was wondering whether anyone had attempted to read or write to files >> before with Links? I don't think there's a built in method for >> it, but I've been trying to display the contents of a file within a form >> field to allow for editing and then saving the edited text to a >> file. Anyone have any ideas? >> >> Thanks, Simon >> > _______________________________________________ > links-users mailing list > [email protected] > http://lists.inf.ed.ac.uk/mailman/listinfo/links-users > > > -- > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336. > >
_______________________________________________ links-users mailing list [email protected] http://lists.inf.ed.ac.uk/mailman/listinfo/links-users
