Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
How to monitor a specific file for changes
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-10-23 (17:17)
From: Orlin Grigorov <ogrigorov@g...>
Subject: Re: [Caml-list] How to monitor a specific file for changes
Thanks Dave.  Actually, the files are not large, these are output text files
from another program, and I can't imagine a situation where the byte size
can exceed a 32 bit integer.



On 10/23/07, Dave Benjamin <> wrote:
> Orlin Grigorov wrote:
> > Using "Unix.stat" works perfectly for my purpose!   On both platforms,
> > hurray!    THANK YOU!
> You may wish to consider "Unix.LargeFile.stat" if there is the
> possibility that some of these files may be large, since st_size
> contains the file size in bytes. Unix.st_size is an int, whereas
> Unix.LargeFile.st_size is an int64.
> Dave