Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] ocaml file operations question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] ocaml file operations question
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