caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] ocaml file operations question
@ 2006-07-23 14:46 Jonathan Roewen
  2006-07-24  8:52 ` Richard Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Roewen @ 2006-07-23 14:46 UTC (permalink / raw)
  To: caml-list

Hi,

If I'm using an OS/FS that supports sparse files (apparently linux does 
this without any magic flags or anything), will reading/writing to this 
file work as expected in OCaml? I guess I'll have to use Unix module 
anyway just to get a read/write file in the first place...

Jonathan


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] ocaml file operations question
  2006-07-23 14:46 [Caml-list] ocaml file operations question Jonathan Roewen
@ 2006-07-24  8:52 ` Richard Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Jones @ 2006-07-24  8:52 UTC (permalink / raw)
  To: Jonathan Roewen; +Cc: caml-list

On Sun, Jul 23, 2006 at 07:46:32AM -0700, Jonathan Roewen wrote:
> If I'm using an OS/FS that supports sparse files (apparently linux does 
> this without any magic flags or anything), will reading/writing to this 
> file work as expected in OCaml? I guess I'll have to use Unix module 
> anyway just to get a read/write file in the first place...

For *nix, the Unix module is just wrappers around the operating system
calls, so just do what you would normally do in (eg) C.  Later
versions of Windows / NTFS support sparse files, but I've no idea what
you need to do to support sparse files under that OS.

Rich.

-- 
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-07-24  8:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-23 14:46 [Caml-list] ocaml file operations question Jonathan Roewen
2006-07-24  8:52 ` Richard Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).