Thread: "ocaml_beginners"::[] Formatting strings without output
"ocaml_beginners"::[]
Formatting strings without output
2007-01-28 21:25:23
Hi,
to generate file names, I'd like to format numbers that I include in
file names like in an fprintf. So 1 would be something like 0001, 2
would be something like 0002, etc.. How do I do that if I don't want to
output the generated string but just put it into a variable? Is there
something like a int_to_string with formatting?