Click here to Skip to main content
15,847,427 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionSelect Case statement Pin
isaii26-Jun-07 21:14
isaii26-Jun-07 21:14 
AnswerRe: Select Case statement Pin
Eduard Keilholz26-Jun-07 23:47
Eduard Keilholz26-Jun-07 23:47 
AnswerRe: Select Case statement Pin
Urs Enzler26-Jun-07 23:59
Urs Enzler26-Jun-07 23:59 
Questionc# to vb.net 2005 Pin
Sonia Gupta26-Jun-07 21:09
Sonia Gupta26-Jun-07 21:09 
AnswerRe: c# to vb.net 2005 Pin
Eduard Keilholz26-Jun-07 23:50
Eduard Keilholz26-Jun-07 23:50 
AnswerRe: c# to vb.net 2005 Pin
Dave Doknjas27-Jun-07 16:16
Dave Doknjas27-Jun-07 16:16 
Questionreading a file.. Pin
hkchauhan26-Jun-07 20:55
hkchauhan26-Jun-07 20:55 
AnswerRe: reading a file.. Pin
koolprasad200326-Jun-07 21:02
professionalkoolprasad200326-Jun-07 21:02 
hello frnd hkchauhan,

try the following example of reading using Stream Reader

Imports System
Imports System.IO
Imports System.Text

Public Class Test

Public Shared Sub Main()
Dim path As String = "c:\temp\MyTest.txt"

Try
If File.Exists(path) Then
File.Delete(path)
End If

Dim sr As StreamReader = New StreamReader(path)

Do While sr.Peek() >= 0
'This is an arbitrary size for this example.
Dim c(5) As Char
sr.Read(c, 0, c.Length)
'The output will look odd, because
'only five characters are read at a time.
Console.WriteLine(c)
Loop
sr.Close()
Catch e As Exception
Console.WriteLine("The process failed: {0}", e.ToString())
End Try
End Sub
End Class



regards,
koolprasad2003Smile | :)



If the message is useful for U then please Rate This message...

Be a good listener...Because Opprtunity knoughts softly...N-Joy

AnswerRe: reading a file.. Pin
hkchauhan26-Jun-07 21:08
hkchauhan26-Jun-07 21:08 
AnswerRe: reading a file.. Pin
marky77726-Jun-07 22:18
marky77726-Jun-07 22:18 
QuestionConfiguration Error Pin
Blumen26-Jun-07 20:55
Blumen26-Jun-07 20:55 
AnswerRe: Configuration Error Pin
Vasudevan Deepak Kumar26-Jun-07 23:19
Vasudevan Deepak Kumar26-Jun-07 23:19 
GeneralRe: Configuration Error Pin
Blumen27-Jun-07 20:30
Blumen27-Jun-07 20:30 
QuestionFilter a DataView Pin
aasstt26-Jun-07 20:48
aasstt26-Jun-07 20:48 
AnswerRe: Filter a DataView Pin
Chetan Ranpariya26-Jun-07 23:25
Chetan Ranpariya26-Jun-07 23:25 
Questionpage is not working perfectly in IE7.0 Pin
popalzai26-Jun-07 20:45
popalzai26-Jun-07 20:45 
AnswerRe: page is not working perfectly in IE7.0 Pin
Chetan Ranpariya26-Jun-07 23:27
Chetan Ranpariya26-Jun-07 23:27 
GeneralRe: page is not working perfectly in IE7.0 Pin
popalzai27-Jun-07 4:12
popalzai27-Jun-07 4:12 
QuestionTreeview Population Pin
Rajeshcode26-Jun-07 20:02
Rajeshcode26-Jun-07 20:02 
AnswerRe: Treeview Population Pin
Gamzun26-Jun-07 22:43
Gamzun26-Jun-07 22:43 
AnswerRe: Treeview Population Pin
sidbaruah27-Jun-07 0:25
sidbaruah27-Jun-07 0:25 
QuestionPlease help on siteMapNode(Web.sitemap) issue Pin
Biju Sam26-Jun-07 19:23
Biju Sam26-Jun-07 19:23 
AnswerRe: Please help on siteMapNode(Web.sitemap) issue Pin
Sathesh Sakthivel26-Jun-07 19:50
Sathesh Sakthivel26-Jun-07 19:50 
Questionmemory leak? Pin
todd.0101110126-Jun-07 16:10
todd.0101110126-Jun-07 16:10 
AnswerRe: memory leak? Pin
RichardGrimmer27-Jun-07 6:48
RichardGrimmer27-Jun-07 6:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.