English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2001-04-26 (17:29)
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)


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


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