[MLton] Writing memory to disk ...

Adam Goode adam@evdebs.org
Wed, 24 May 2006 14:08:51 -0400


This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig474C1578D79A836B75A4536C
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Stephen Weeks wrote:
> ....
> As to what directory gets used, the current behavior is to use
> C:/WINNT/TEMP on Windows and /tmp elsewhere, overridable by an
> environment variable, $TEMP on Windows and $TMPDIR elsewhere.
>=20


C:\WINNT often doesn't exist on Windows. Sometimes it is C:\WINDOWS, but
it could be anything!

Would it be better to use the system facilities for getting a temporary
file?

On Unix: tmpfile(3)
On Windows: GetTempFileName and GetTempPath
 See:
 http://msdn.microsoft.com/library/default.asp?url=3D/library/en-us/filei=
o/fs/creating_and_using_a_temporary_file.asp




Adam


--------------enig474C1578D79A836B75A4536C
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFEdKE2lenB4PQRJawRAkAUAJ4sz1xAeFvrUkH3foI/bSRXaMrcywCeLmpr
+QcyP7ek7yz2V0+ZaTabPMw=
=3m/R
-----END PGP SIGNATURE-----

--------------enig474C1578D79A836B75A4536C--