GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 17-Nov-2003, 10:23
k209310 k209310 is offline
New Member
 
Join Date: Nov 2003
Location: Newcastle, England
Posts: 1
k209310 is an unknown quantity at this point

Manipulating text Files


Hi there.

I’m new to C++ and this message board so please go easy on me.

I am trying to delete a line in a text file depending upon a string that is embedded on that particular line.

I know as much (I think) as that I need to read the text file line by line and miss out the line that I need to delete and then copy what has read back in to file overwriting the original contents. (Please correct me if this is wrong).

My problem is that I can read the text file as a whole but I can’t manage to read a single line depending upon a string contained in the line i.e.:

Select line where "Chris" is contained.
Name1 | Home | Chris | Football;

I hope this makes sense.

I appreciate all comments as I am trying to learn as much as I can here as I go along. Thanks for reading.

Chris
 
 

Recent GIDBlogObservations of Iraq by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CD Burner Help - Power Calibration Error.... JonBoy420 Computer Hardware Forum 110 05-Feb-2008 18:34
gxx linker accepts only 7 object files danielxs66 C++ Forum 1 12-Dec-2003 09:27
CD Buring Failed skanth2000 Computer Hardware Forum 1 15-Nov-2003 03:52
text field problm zuzupus Web Design Forum 3 04-Sep-2003 05:18
Scrolling Text Ads - Free advertising on other peoples sites jrobbio Advertising & Affiliates Forum 0 19-Feb-2003 00:00

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 11:25.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.