Thread: IO straming

  1. #1

    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?

  2. #2
    Registered User
    Join Date
    Mar 2002
    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
    thanks elad

  4. #4
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001
    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, 07: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, 04:33 AM