List Info

Thread: "ocaml_beginners"::[] Formatting strings without output




"ocaml_beginners"::[] Formatting strings without output
user name
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?

Cheers,
Christian

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )