From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id D6443BBBB for ; Tue, 14 Mar 2006 02:21:57 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k2E1LvWp015267 for ; Tue, 14 Mar 2006 02:21:57 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id CAA17155 for ; Tue, 14 Mar 2006 02:21:57 +0100 (MET) Received: from web61311.mail.yahoo.com (web61311.mail.yahoo.com [209.73.179.80]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id k2E1LuK8015240 for ; Tue, 14 Mar 2006 02:21:56 +0100 Received: (qmail 58724 invoked by uid 60001); 14 Mar 2006 01:21:55 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=mzL5/XAZrnZv0QV6lub/n5ldLl/bDPPgzdIjEzQp7QX7Uq4yEtj2/DtEr2x9hBxAoGvTbuZP0bgjPGcIEZy1jrEvPcbrOjGjuvxfiKefIrUifE9xOQrbXaHcYN+/m5GuPXOOP6lxe2Iek0Re9wdZ8W3bCIsoRoaEZcj3bpfyJHU= ; Message-ID: <20060314012155.58722.qmail@web61311.mail.yahoo.com> Received: from [72.81.49.194] by web61311.mail.yahoo.com via HTTP; Mon, 13 Mar 2006 17:21:55 PST Date: Mon, 13 Mar 2006 17:21:55 -0800 (PST) From: Troy Spier Subject: Hello To: caml-list@inria.fr MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1871153543-1142299315=:56463" Content-Transfer-Encoding: 8bit X-j-chkmail-Score: MSGID : 44161AB5.000 on concorde : j-chkmail score : XX : 0/20 2 X-j-chkmail-Score: MSGID : 44161AB4.001 on concorde : j-chkmail score : XX : 0/20 2 X-Miltered: at concorde with ID 44161AB5.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 44161AB4.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 printf:01 printf:01 ocaml:01 troy:98 troy:98 string:02 string:02 let:03 let:03 photos:94 photos:94 annoying:06 annoying:06 function:08 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: ** X-Spam-Status: No, score=2.4 required=5.0 tests=FROM_ENDS_IN_NUMS,HTML_20_30, HTML_MESSAGE,SUB_HELLO autolearn=disabled version=3.0.3 --0-1871153543-1142299315=:56463 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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. - Troy --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments. --0-1871153543-1142299315=:56463 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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.

- Troy


Yahoo! Mail
Use Photomail to share photos without annoying attachments. --0-1871153543-1142299315=:56463--