![]() |
|
#1
|
|||
|
|||
creating new fileHello,
I have a file for (example File1.vid), which I'm extracting some feature from it and saving those feature in a vector. I need to save that vector in a new file, giving it the same name as "File1", but with a differrent extension, for eg, ".txt". How do I go about creating that new file. Can anyone help |
|
#2
|
||||
|
||||
|
Well, you can use stream I/O to do it.
CPP / C++ / C Code:
__________________
-Aaron |
|
#3
|
|||
|
|||
|
Thank you,
But say: my original file was ("C:\\somefolder\\somedata.vid"), After reading my data from the original file, I need my outputfile to be: outFile.open("C:\\somefolder\\somedata.txt"); That means only the 'ext' changes but the name stays the same. How do I do that? |
|
#4
|
|||
|
|||
|
Quote:
ok if u look at the other threads sent earlier on there is one sent by vadharah entitled "about file names " read the replies he got. one of them answers ur question. ![]() |
|
#5
|
||||
|
||||
|
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#6
|
|||
|
|||
|
Thank you very much for your help
|
Recent GIDBlog
Meeting the populace by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CD burner wont burn!! | robertli55 | Computer Hardware Forum | 1 | 18-Jun-2004 10:53 |
| Yet another CD burner problem: Lite-On LSC-24082K | Erwin | Computer Hardware Forum | 1 | 22-May-2004 11:28 |
| Re: Programming Techniques | WaltP | C Programming Language | 0 | 09-Mar-2004 23:56 |
| C++ file I/O | CronoX | C++ Forum | 36 | 09-Mar-2004 17:28 |
| read specified range of lines from file | etron | C Programming Language | 8 | 18-Feb-2004 08:04 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The