GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 23-Sep-2003, 11:27
raymc raymc is offline
New Member
 
Join Date: Sep 2003
Posts: 1
raymc is an unknown quantity at this point

Files in C


Hi 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  
Old 24-Sep-2003, 03:07
Garth Farley Garth Farley is offline
Invalid Email Address
 
Join Date: May 2002
Location: Ireland
Posts: 638
Garth Farley is a jewel in the roughGarth Farley is a jewel in the roughGarth Farley is a jewel in the rough
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 GIDBlogWelcome to Baghdad by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 20:41.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.