My task is going to read all the .wav files and all text files without extension (like those in Linux), read them and process them.
For each pair of wave file and text file with the same name, I create a new text file with the name similar to names of that pair. For example:
Currently I'm in my working folder
.\, now I have these files:
.\1\s1.wav
.\1\s1
.\1\s2.wav
.\1\s2
.\2\s3.wav
.\2\s3
.\2\s4.wav
.\2\s4
.\3\s5.wav
.\3\s5 |
which means there are 3 subfolders in my working folder,
.\1\,
.\2\,
.\3\. In each subfolder, there is some pair(s) of sample files
s*.wav and
s*. Like I search for the
s1.wav and
s1, then read them, and process and put my output into a new file I should create,
s1.txt.
How to do this task? It's urgent, thank you!
I tried to find some boost library available, but I don't know how to include them into my project. Is these helpful:
http://www.drdobbs.com/cpp/184404797#l4
Regular Expressions in C++
http://www.boost.org/
Boost C++ Libraries
My working environment:
Microsoft Visual Studio 2008
Windows 7 English Professional