Click here to Skip to main content
15,915,086 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionFrom name as String to form reference Pin
nishkarsh_k17-Jun-08 23:48
nishkarsh_k17-Jun-08 23:48 
AnswerRe: From name as String to form reference Pin
darkelv18-Jun-08 15:34
darkelv18-Jun-08 15:34 
QuestionHow to save images into SQL database using ASP.net under VB instead of C# Pin
anting17-Jun-08 22:59
anting17-Jun-08 22:59 
AnswerRe: How to save images into SQL database using ASP.net under VB instead of C# Pin
Smithers-Jones17-Jun-08 23:04
Smithers-Jones17-Jun-08 23:04 
Questionreading logfile Pin
Ebube17-Jun-08 21:21
Ebube17-Jun-08 21:21 
AnswerRe: reading logfile Pin
Noctris18-Jun-08 0:14
Noctris18-Jun-08 0:14 
GeneralRe: reading logfile Pin
Ebube18-Jun-08 4:35
Ebube18-Jun-08 4:35 
GeneralRe: reading logfile Pin
Noctris18-Jun-08 6:02
Noctris18-Jun-08 6:02 
Hmm.. i suggest you do a little looking up on google before you continue cause looking at your pseudo code.. you are not really catching on... Depending on what you want.. you could do the following to read the entire file:

dim sMyVariableThatWillContainTheWholeEntireTextOfTheFile as string
dim fs as new system.io.filestream("yourfilenamehere", FileMode.Open, FileAccess.Read, FileShare.ReadWrite)
dim sReader as new streamreader(fs)
sMyVariableThatWillContainTheWholeEntireTextOfTheFile = sReader.ReadToEnd 


However.. take under consideration that depending on the size of the file, this might not be the best way to go.. you could also do :

sReader.ReadLine()


to read the file line by line and perform actions on the content of that line..

Take a look at the streamreader class here: http://msdn.microsoft.com/en-us/library/system.io.streamreader.aspx[^]
AnswerRe: reading logfile Pin
Hasan Jaffal18-Jun-08 20:05
Hasan Jaffal18-Jun-08 20:05 
QuestionAsking about global variable using VB.NET Window Form Application Pin
drexler_kk17-Jun-08 21:01
drexler_kk17-Jun-08 21:01 
AnswerRe: Asking about global variable using VB.NET Window Form Application Pin
Ashfield17-Jun-08 21:20
Ashfield17-Jun-08 21:20 
GeneralRe: Asking about global variable using VB.NET Window Form Application Pin
drexler_kk17-Jun-08 22:11
drexler_kk17-Jun-08 22:11 
AnswerRe: Asking about global variable using VB.NET Window Form Application Pin
Guffa17-Jun-08 21:34
Guffa17-Jun-08 21:34 
QuestionRe: Asking about global variable using VB.NET Window Form Application Pin
drexler_kk17-Jun-08 22:06
drexler_kk17-Jun-08 22:06 
AnswerRe: Asking about global variable using VB.NET Window Form Application Pin
Guffa17-Jun-08 22:21
Guffa17-Jun-08 22:21 
QuestionRe: Asking about global variable using VB.NET Window Form Application Pin
drexler_kk17-Jun-08 22:44
drexler_kk17-Jun-08 22:44 
AnswerRe: Asking about global variable using VB.NET Window Form Application Pin
Jay Royall18-Jun-08 1:34
Jay Royall18-Jun-08 1:34 
GeneralRe: Asking about global variable using VB.NET Window Form Application Pin
drexler_kk18-Jun-08 15:12
drexler_kk18-Jun-08 15:12 
GeneralRe: Asking about global variable using VB.NET Window Form Application Pin
drexler_kk18-Jun-08 15:15
drexler_kk18-Jun-08 15:15 
GeneralRe: Asking about global variable using VB.NET Window Form Application Pin
Guffa18-Jun-08 23:32
Guffa18-Jun-08 23:32 
Questiondebugging problem Pin
maytel mynt17-Jun-08 19:28
maytel mynt17-Jun-08 19:28 
AnswerRe: debugging problem Pin
Rupesh Kumar Swami17-Jun-08 21:48
Rupesh Kumar Swami17-Jun-08 21:48 
GeneralRe: debugging problem Pin
maytel mynt17-Jun-08 22:34
maytel mynt17-Jun-08 22:34 
Question(Rs232) how to receiver the correct value and sort in textbox Pin
kain77717-Jun-08 17:56
kain77717-Jun-08 17:56 
QuestionMutiple instance in app.config Pin
Subjugate17-Jun-08 15:41
Subjugate17-Jun-08 15:41 

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.