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
[ 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:21)
From: [removed]
Subject: Hello
Hello! I just read a page on the OCaml website about submitting questions. Well, I have a question for you. How would I put the user input into a text file, that can be read and modified? Let's say I used this function for the input, how would I create a text file of it:
 print_string "What's your name ? "; let name = read_line () in Printf.printf "Hello, %s.\n" name ;;
 Thank you for all your help.
 - [removed]
 Yahoo! Mail
 Use Photomail to share photos without annoying attachments.