Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How to write multiple .tsv files

  1. Jul 12, 2010 #1
    Hi, guys,

    I have to read from a big txt file into multiple small .tsv files.
    But I was blocked at the file name. Since according to the
    definition of ofstream, the filename is constant char *, then
    is no way to modify the filename, which results in unable to
    write multiple files.

    Does any body has any idea on this ?

    Thanks a lot in advance !

    Best !

  2. jcsd
  3. Jul 12, 2010 #2
    my code in C++, sorry for the missing.
    If there is any solution based on ROOT,
    it's good also.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook