Deletion of input in Binary File

This is a discussion on Deletion of input in Binary File within the C++ Programming forums, part of the General Programming Boards category; Could anyone show me an example of programme for deleting of input in Binary File. I have attach my c ...

  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.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    2,662
    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 05: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, 01:37 AM
  3. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 01: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

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