Thread: Basic file volume divider

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    2

    Question Basic file volume divider

    I am familiar with VB but new to C++.. I am trying to write a file volume divider console program.. I am stuck in the buffering syntax can anyone help me?

    At the console, program may work in the following syntax;

    C:\ProgramName FileNametobeDivided EachVolumeSizeinKB PiecefileName

    Program starting... Determined filesize of FileNametobeDivided is XXXXXXX KB..

    Dividing FileNametobeDivided into XX pieces

    Piece 001.. File Name as PiecefileName001.ext
    Piece 002.. File Name as PiecefileName002.ext
    Piece 003.. File Name as PiecefileName003.ext
    ...
    ...


    Which class should I use for basic bufffering,, What must be the syntax ?
    some code may be helpful... thanx
    Also pseudo-codes will be appreciated...

  2. #2
    Registered User Osaou's Avatar
    Join Date
    Nov 2004
    Location
    Stockholm, Sweden
    Posts
    69
    You should really study C++ quite a bit before trying to write anything that handles audio... =/

    http://www.cprogramming.com/tutorial/lesson1.html
    http://cplus.about.com/od/beginnerctutorial/
    http://www.cplusplus.com/doc/tutorial/classes.html

  3. #3
    Registered User
    Join Date
    Jul 2006
    Posts
    2
    I think you have misunderstood..
    There is nothing related with audio in anyway......

    I have already constructed the program.
    ...


    anyway I have solved the problem I think.

    By the way this is a file splitter program..
    It splits a file into pieces....

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    The intros to those tutorials should give you enough to be able to read and write bytes.
    The rest is just loops and counters to make sure everything goes to the right place.
    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. Need Help Fixing My C Program. Deals with File I/O
    By Matus in forum C Programming
    Replies: 7
    Last Post: 04-29-2008, 07:51 PM
  2. Inventory records
    By jsbeckton in forum C Programming
    Replies: 23
    Last Post: 06-28-2007, 04:14 AM
  3. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 07:01 PM
  4. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM