How to write multiple .tsv files

  • Thread starter Thread starter junhui.liao
  • Start date Start date
  • Tags Tags
    files Multiple
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 3K views
junhui.liao
Messages
6
Reaction score
0
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 anybody has any idea on this ?

Thanks a lot in advance !

Best !

Junhui
 
Physics news on Phys.org
my code in C++, sorry for the missing.
If there is any solution based on ROOT,
it's good also.