* Hello @ 2006-03-14 1:21 Troy Spier 2006-03-14 1:26 ` [Caml-list] Hello Jonathan Roewen 2006-03-14 1:29 ` Jonathan Roewen 0 siblings, 2 replies; 5+ messages in thread From: Troy Spier @ 2006-03-14 1:21 UTC (permalink / raw) To: caml-list [-- Attachment #1: Type: text/plain, Size: 529 bytes --] 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. [-- Attachment #2: Type: text/html, Size: 634 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] Hello 2006-03-14 1:21 Hello Troy Spier @ 2006-03-14 1:26 ` Jonathan Roewen 2006-03-14 1:29 ` Jonathan Roewen 1 sibling, 0 replies; 5+ messages in thread From: Jonathan Roewen @ 2006-03-14 1:26 UTC (permalink / raw) To: Troy Spier; +Cc: caml-list > 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;; ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] Hello 2006-03-14 1:21 Hello Troy Spier 2006-03-14 1:26 ` [Caml-list] Hello Jonathan Roewen @ 2006-03-14 1:29 ` Jonathan Roewen 2006-03-14 1:35 ` Corey O'Connor 1 sibling, 1 reply; 5+ messages in thread From: Jonathan Roewen @ 2006-03-14 1:29 UTC (permalink / raw) To: Troy Spier; +Cc: caml-list Actually, I should've just linked you to the standard library documentation (http://caml.inria.fr/pub/docs/manual-ocaml/libref/index.html). ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] Hello 2006-03-14 1:29 ` Jonathan Roewen @ 2006-03-14 1:35 ` Corey O'Connor 0 siblings, 0 replies; 5+ messages in thread From: Corey O'Connor @ 2006-03-14 1:35 UTC (permalink / raw) To: Jonathan Roewen; +Cc: Troy Spier, caml-list The beginners list is a good place to ask these sorts of questions: http://groups.yahoo.com/group/ocaml_beginners -Corey On 3/13/06, Jonathan Roewen <jonathan.roewen@gmail.com> wrote: > Actually, I should've just linked you to the standard library > documentation (http://caml.inria.fr/pub/docs/manual-ocaml/libref/index.html). > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > -- -Corey O'Connor ^ permalink raw reply [flat|nested] 5+ messages in thread
* hello @ 2007-09-09 8:19 Vivian Wilson 0 siblings, 0 replies; 5+ messages in thread From: Vivian Wilson @ 2007-09-09 8:19 UTC (permalink / raw) To: caml-light, caml-list-request, caml-list hello Glenna Huge stck Alert, Sym:chvc See all the volume, GET IN Salvador ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-09-09 8:19 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-03-14 1:21 Hello Troy Spier 2006-03-14 1:26 ` [Caml-list] Hello Jonathan Roewen 2006-03-14 1:29 ` Jonathan Roewen 2006-03-14 1:35 ` Corey O'Connor 2007-09-09 8:19 hello Vivian Wilson
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox