C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Read contents of file into single string variable


Posted Date: 07 May 2008    Resource Type: Code Snippets    Category: String Manipulations

Posted By: Shilpa Ginode       Member Level: Gold
Rating:     Points: 5



To read the entire contents of the file into a single string variable use follwing:


Dim result as String = Nothing
Dim reader as New StreamReader("FileName")
result = reader.ReadToEnd()


Cheers
Shilpa




Responses

Author: vivek kushwaha    08 May 2008Member Level: Silver   Points : 2
looks great.

thanks.

'for .net 2003 on intranet it misses with path.
c:\windows\system32\inetsrv\filename.ext
'for .net 2005 on local it misses with path.
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\filname.ext

please solve it.


Author: mani    08 May 2008Member Level: Silver   Points : 2
hi vivek i cant understand it


Author: vivek kushwaha    09 May 2008Member Level: Silver   Points : 2
run this code then see what happen.


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Trim Leading Characters using SQL functions
Previous Resource: Function to Check a string is upper case or not
Return to Discussion Resource Index
Post New Resource
Category: String Manipulations


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

efax

Contact Us    Privacy Policy    Terms Of Use