Thread: Help open wave file in Borland C++ plz

  1. #1
    Registered User
    Join Date
    Jan 2004
    Posts
    3

    Unhappy Help open wave file in Borland C++ plz

    Hi again.. Lasttime I open by VC++ but use wizard to do it.

    My friend needs me to do in Borland C++ (text mode) and write back the amplitude / sample rate etc. in text file for using for another function.. I'm not good know in the format of wave file.

    I understand that wave file have 2 part which first part contain format of wave the another part contain data .. am i correct?

    So if i want to read wave. Can i use fostream open them and get the wave format like using same as read string?.. I'm not sure about this one (sorry i'm newbies c++) Plz help me or recommend where should i have to read about this (I mean about writing c++ open wave file) ... ..

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    So what part of the previous answer are you having trouble with?

    File formats don't give a damn about which compiler or OS you're using.
    Once you understand that a file is simply an array of unsigned chars, you simply access the bytes you need (read the documentation for the file format), and you process them in whatever manner you want.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Formatting the contents of a text file
    By dagorsul in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2008, 12:36 PM
  2. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 05:02 AM
  3. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  4. file processing updating record error
    By uuser in forum C Programming
    Replies: 2
    Last Post: 04-27-2003, 12:13 AM