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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Georges Brun-Cottan <gbruncot@e...>
Subject: Re: [Caml-list] copy file


>  I'm new to caml and have compiled this cp.ml file on my windows system using
>  "ocamlc -o cp.exe cp.ml".
>  However, I do not get any response when trying to use it. Is there an error
>  in the file?


Mark, your program works fine. But you simply forgot to invoke your
function ;-)

Add the following line at the end of your program and it will do what
you expect:

let _ = cp Sys.argv.(1) Sys.argv.(2)

or 

let _ = cp "foo" "bar" 
(to copy an existing file "foo" to a file "bar".)


BTW, zax@chello.nl returns a permanent mail error. You should fix
that.


Best,

-- Georges
-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr