Thread: Deletion of input in Binary File

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    2

    Question Deletion of input in Binary File

    Could anyone show me an example of programme for deleting of input in Binary File. I have attach my c source file. Hope someone could help me. Thank You!!! One last time, there is something wrong with my viewa() function. It could only match the first input that i enter. The rest could not be match.

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    ofstream inputFile("C:\\FolderA\\my_input.txt");
    inputFile.close();

    Even if you don't write to the file after opening it, the original contents will be discarded and you will have an empty file. Post your code between code tags if you want more help. Most people won't download code from an unkown source.
    Last edited by 7stud; 04-14-2003 at 04:51 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. can someone help me with these errors please code included
    By geekrockergal in forum C Programming
    Replies: 7
    Last Post: 02-10-2009, 02:20 PM
  2. Binary Input File to Array
    By siLent0 in forum C Programming
    Replies: 19
    Last Post: 04-11-2008, 12:37 AM
  3. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  4. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 02:58 AM