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
Hello
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-03-14 (01:26)
From: Jonathan Roewen <jonathan.roewen@g...>
Subject: Re: [Caml-list] Hello
> print_string "What's your name ? "; let name = read_line () in Printf.printf
> "Hello, %s.\n" name ;;

let o = open_out "filename";;
output_string o name;;
close_out o;;