Something is wrong with my file reverse program

This is a discussion on Something is wrong with my file reverse program within the C Programming forums, part of the General Programming Boards category; Consider that you wanted to reverse the text on a HTML web-page - you wouldn't want to reverse the HTML ...

  1. #16
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Consider that you wanted to reverse the text on a HTML web-page - you wouldn't want to reverse the HTML tags, right? Same with reversing for example an MP3 - you need to separate the metadata (TAGS, or other data that describes the actual data) from the actual payload data (the content of a web-page or the audio data in a MP3).

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  2. #17
    Super unModrator
    Join Date
    Dec 2007
    Posts
    321
    That would be too hard for me

    Can you think of an assignment I can do (regarding FILE I/O) to play with text or binary files?

  3. #18
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    How about "reverse every other word in a text"? That would be a bit more challenging, but still not too difficult to achieve.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. To find the memory leaks without using any tools
    By asadullah in forum C Programming
    Replies: 2
    Last Post: 05-12-2008, 07:54 AM
  2. Formatting a text file...
    By dagorsul in forum C Programming
    Replies: 12
    Last Post: 05-02-2008, 03:53 AM
  3. 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
  4. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 AM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21