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
[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 file on my windows system using
>  "ocamlc -o cp.exe".
>  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)


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

BTW, returns a permanent mail error. You should fix


-- Georges
To unsubscribe, mail  Archives: