Hello all, Is there a way to redirect the std output to a text file? I'd like to use chuck to annotate songs, i.e. when I hear a kick a press a midi keyboard and I tell chuck to output the elapsed time to the console. I'd like to write this output to a text file, but I haven't succeed. Could some one give me a hint? and if that hint is unix or c/c++ it'd be better. thanks in advance, Eduard
Greetings,
Is there a way to redirect the std output to a text file?
To direct stdout to file: %> chuck foo.ck > foo.txt However, I believe ChucK is only writing to stderr at the moment, even <<< >>>, so you would need a slightly different redirect: %> chuck foo.ck >& foo.txt This latter feature works almost everywhere except for Windows/DOS. If you want to do this on Windows, you will need cygwin.
I'd like to use chuck to annotate songs, i.e. when I hear a kick a press a midi keyboard and I tell chuck to output the elapsed time to the console. I'd like to write this output to a text file, but I haven't succeed.
Cool! We are sorry that file I/O still doesn't exist except for audio files. However, we are working on it. Hope this helps. Best, Ge!
Thanks Ge,
It does help.
I had tried ./chuck foo.ck > foo.txt and also while(cin>>c)
file<
Greetings,
Is there a way to redirect the std output to a text file?
To direct stdout to file:
%> chuck foo.ck > foo.txt
However, I believe ChucK is only writing to stderr at the moment, even <<< >>>, so you would need a slightly different redirect:
%> chuck foo.ck >& foo.txt
This latter feature works almost everywhere except for Windows/DOS. If you want to do this on Windows, you will need cygwin.
I'd like to use chuck to annotate songs, i.e. when I hear a kick a press a midi keyboard and I tell chuck to output the elapsed time to the console. I'd like to write this output to a text file, but I haven't succeed.
Cool! We are sorry that file I/O still doesn't exist except for audio files. However, we are working on it.
Hope this helps.
Best, Ge! _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
participants (2)
-
eduard
-
Ge Wang