![]() |
|
#1
|
|||
|
|||
Files in CHi all,
I'm programming a speech coder for analysis, but the problem is I have to write the code to work on a frame by frame basis,so for each frame, i dump the parameters into a file,which is grand.Now the problem after the first frame is gone and it comes to the second frame,it writes over the file made earlier,any suggestions to solve this??I have one method,I dump everything in a static array for the 50 frames and then dump these into the file but this isnt very efficient.Any help will be greatly appreciated. |
|
#2
|
|||
|
|||
|
Overwriting data in a file is usually that you've opened it using the wrong parameters. Stick ios::app into the file open function, to get it to append data to the end, or ios::ate to leave the file pointer At The End.
The way you're dumping your data sounds as efficient as possible to me, but I'm not well up on program efficiency yet. GF |
Recent GIDBlog
Welcome to Baghdad by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| gxx linker accepts only 7 object files | danielxs66 | C++ Forum | 1 | 12-Dec-2003 09:27 |
| How to create batch files without DOS box? | rhino1616 | Web Design Forum | 3 | 18-Aug-2003 10:00 |
| any one knows about the address of the deleted files in FAT | shaam | C++ Forum | 1 | 09-Aug-2003 16:18 |
| Dedicated to JDS who does not like flash files | jrobbio | Open Discussion Forum | 9 | 15-Feb-2003 03:24 |
| publishing Drirector/Shockwave files ...? | darrin | Web Design Forum | 1 | 04-Oct-2002 17:21 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The