Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 7th, 2008, 8:30 AM   #1
Jewel
Programmer
 
Join Date: Feb 2008
Posts: 32
Rep Power: 0 Jewel is on a distinguished road
Reading and Writing to a Txt File.

I got a text file ( Check the Attachments ) and i want to edit the part where reads

!!Read and Write Here!!!. Been googling around and can't find any posts about this.

Anyone can help? And i don't have any code.

Thanks.
Attached Files
File Type: txt ReadWrite.txt (3.7 KB, 12 views)
__________________
C#

Last edited by Jewel; Jul 7th, 2008 at 8:49 AM.
Jewel is offline   Reply With Quote
Old Jul 7th, 2008, 10:10 AM   #2
bigguy
Professional Programmer
 
bigguy's Avatar
 
Join Date: Sep 2005
Location: Arkansas
Posts: 298
Rep Power: 0 bigguy is an unknown quantity at this point
Send a message via AIM to bigguy Send a message via MSN to bigguy Send a message via Yahoo to bigguy
Re: Reading and Writing to a Txt File.

Check this out - http://msdn.microsoft.com/en-us/libr...g_members.aspx
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain

Destruction leads to a very rough road, but it also breeds creation.
bigguy is offline   Reply With Quote
Old Jul 7th, 2008, 10:27 AM   #3
Jewel
Programmer
 
Join Date: Feb 2008
Posts: 32
Rep Power: 0 Jewel is on a distinguished road
Re: Reading and Writing to a Txt File.

That's not what i was looking for because there's no method for Reading or Writing a line.
__________________
C#
Jewel is offline   Reply With Quote
Old Jul 7th, 2008, 12:14 PM   #4
Jewel
Programmer
 
Join Date: Feb 2008
Posts: 32
Rep Power: 0 Jewel is on a distinguished road
Re: Reading and Writing to a Txt File.

Got it now.. But have a new question.. How is this possible:

string hello = "Jewel says:"Hello World"."
__________________
C#
Jewel is offline   Reply With Quote
Old Jul 7th, 2008, 2:02 PM   #5
big_k105
PFO Founder

 
big_k105's Avatar
 
Join Date: Mar 2004
Location: Fargo, ND
Posts: 1,649
Rep Power: 10 big_k105 is on a distinguished road
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
Re: Reading and Writing to a Txt File.

I don't really get what you are asking but is this what you are looking for?

string hello = "Jewel says:\"Hello World\".";
__________________
BIG K aka Kyle
Programming Forums
Kyle K Online

Please do not PM or email me programming questions. Post them in the forums instead.
big_k105 is offline   Reply With Quote
Old Jul 7th, 2008, 2:12 PM   #6
Jewel
Programmer
 
Join Date: Feb 2008
Posts: 32
Rep Power: 0 Jewel is on a distinguished road
Re: Reading and Writing to a Txt File.

Quote:
Originally Posted by big_k105 View Post
I don't really get what you are asking but is this what you are looking for?

string hello = "Jewel says:\"Hello World\".";
It worked. Thanks.
__________________
C#
Jewel is offline   Reply With Quote
Old Jul 7th, 2008, 8:46 PM   #7
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 582
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
Re: Reading and Writing to a Txt File.

Explaining what kyle said, \" is what is known as an escape character. there are others, but you can google those if you would like. I believe most languages have them.
__________________
Quote:
Originally Posted by DaWei View Post
Well, it's better than Pen Islands url....;)

crawforddavid2006 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB 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
Structures and Reading from File ccfc1986 C++ 14 Nov 24th, 2007 5:57 PM
reading and writing to a file cwl157 C++ 9 Apr 30th, 2006 7:29 AM
Urgent (reading and writing files in VB6) Indigno Visual Basic 6 Mar 17th, 2006 10:05 PM
Reading n´ writing MS Access memo fields edneymatias C++ 0 Mar 31st, 2005 1:56 PM
airport Log program using 3D linked List : problem reading from file gemini_shooter C++ 0 Mar 2nd, 2005 4:12 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:29 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC