IO straming

This is a discussion on IO straming within the C++ Programming forums, part of the General Programming Boards category; Hi all! I have a problem whith the i/o streaming in c++ (turbo c++ 3.1)how can i delete a string ...

  1. #1
    Unregistered
    Guest

    IO straming

    Hi all!
    I have a problem whith the i/o streaming in c++ (turbo c++ 3.1)how can i delete a string inside a file and dont let the space of the string empty?
    thanks

  2. #2
    Registered User
    Join Date
    Mar 2002
    Posts
    1,595
    you can either replace the string in file with a sequence of nonsensical material---say all asterisks--- or write the contents of the file to your program, do the deletion within the program, and then write the modified file contents back to file. If the string were part of a struct/class that also had a flag you could just change the flag to indicate that a given string should be ignored.

  3. #3
    Unregistered
    Guest
    thanks elad

  4. #4
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001
    Posts
    187
    also, replace that string with spaces

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program crashing when I use IO
    By legit in forum C++ Programming
    Replies: 9
    Last Post: 05-31-2009, 08:54 AM
  2. Server deadlocks, Nonblocking IO, or Timeout?
    By 0xception in forum C Programming
    Replies: 6
    Last Post: 01-03-2005, 12:49 PM
  3. File IO with .Net SDK and platform SDK
    By AtomRiot in forum Windows Programming
    Replies: 5
    Last Post: 12-14-2004, 10:18 AM
  4. Totally puzzling IO problem
    By Vorok in forum C++ Programming
    Replies: 5
    Last Post: 01-06-2003, 07:10 PM
  5. more newbie questions - file io
    By sunzoner in forum C++ Programming
    Replies: 1
    Last Post: 06-13-2002, 05:33 AM

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