Click here to Skip to main content
15,903,201 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: how to use cookies in visual basic Pin
thatraja28-Oct-10 22:43
professionalthatraja28-Oct-10 22:43 
AnswerRe: how to use cookies in visual basic Pin
Rajesh Anuhya28-Oct-10 23:19
professionalRajesh Anuhya28-Oct-10 23:19 
AnswerRe: how to use cookies in visual basic Pin
Dave Kreskowiak29-Oct-10 3:20
mveDave Kreskowiak29-Oct-10 3:20 
AnswerRe: how to use cookies in visual basic Pin
bigbadben17-Nov-10 23:52
bigbadben17-Nov-10 23:52 
QuestionobjReader.peek() concept Pin
swathi658928-Oct-10 20:37
swathi658928-Oct-10 20:37 
AnswerRe: objReader.peek() concept Pin
riced28-Oct-10 23:45
riced28-Oct-10 23:45 
GeneralRe: objReader.peek() concept Pin
swathi658929-Oct-10 2:38
swathi658929-Oct-10 2:38 
AnswerRe: objReader.peek() concept Pin
Luc Pattyn29-Oct-10 2:46
sitebuilderLuc Pattyn29-Oct-10 2:46 
Hi,

for file I/O you don't need Peek() at all, just create a loop and test the ReadLine() result, see here[^].

And for small files, read all at once using File.ReadAllText() or File.ReadAllLines().

You would need Peek() pr some other blocking call if the data is streaming in slowly, say in networking; but not for files.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


QuestionVB zipping folder Pin
crain198128-Oct-10 4:53
crain198128-Oct-10 4:53 
AnswerRe: VB zipping folder Pin
_Erik_28-Oct-10 5:12
_Erik_28-Oct-10 5:12 
GeneralRe: VB zipping folder Pin
crain198128-Oct-10 5:17
crain198128-Oct-10 5:17 
GeneralRe: VB zipping folder Pin
_Erik_28-Oct-10 5:32
_Erik_28-Oct-10 5:32 
GeneralRe: VB zipping folder Pin
crain198128-Oct-10 6:20
crain198128-Oct-10 6:20 
AnswerRe: VB zipping folder Pin
dan!sh 28-Oct-10 10:19
professional dan!sh 28-Oct-10 10:19 
QuestionCrystal Report Formating Pin
Nikhil Bhivgade27-Oct-10 21:44
professionalNikhil Bhivgade27-Oct-10 21:44 
AnswerRe: Crystal Report Formating Pin
Richard MacCutchan27-Oct-10 23:04
mveRichard MacCutchan27-Oct-10 23:04 
QuestionTextChanged event not fireing. [SOLVED] Pin
chrispowell1234527-Oct-10 5:57
chrispowell1234527-Oct-10 5:57 
AnswerRe: TextChanged event not fireing. Pin
Dave Kreskowiak27-Oct-10 6:17
mveDave Kreskowiak27-Oct-10 6:17 
AnswerRe: TextChanged event not fireing. Pin
_Erik_27-Oct-10 6:42
_Erik_27-Oct-10 6:42 
GeneralRe: TextChanged event not fireing. Pin
chrispowell1234527-Oct-10 23:41
chrispowell1234527-Oct-10 23:41 
QuestionScript for checking domain & Map Drive Pin
OrdinaryGal27-Oct-10 3:18
OrdinaryGal27-Oct-10 3:18 
AnswerRe: Script for checking domain & Map Drive Pin
Dave Kreskowiak27-Oct-10 5:27
mveDave Kreskowiak27-Oct-10 5:27 
GeneralRe: Script for checking domain & Map Drive Pin
OrdinaryGal27-Oct-10 5:41
OrdinaryGal27-Oct-10 5:41 
GeneralRe: Script for checking domain & Map Drive Pin
phil.o27-Oct-10 5:47
professionalphil.o27-Oct-10 5:47 
GeneralRe: Script for checking domain & Map Drive Pin
OrdinaryGal27-Oct-10 5:55
OrdinaryGal27-Oct-10 5:55 

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.