Click here to Skip to main content
15,889,863 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: IntPtr Pin
Guffa4-Mar-07 8:38
Guffa4-Mar-07 8:38 
GeneralRe: IntPtr Pin
MikeMarq5-Mar-07 5:51
MikeMarq5-Mar-07 5:51 
AnswerRe: IntPtr Pin
Vasudevan Deepak Kumar4-Mar-07 17:04
Vasudevan Deepak Kumar4-Mar-07 17:04 
Questionpreview Pin
amaneet4-Mar-07 3:27
amaneet4-Mar-07 3:27 
AnswerRe: preview Pin
Vasudevan Deepak Kumar4-Mar-07 17:04
Vasudevan Deepak Kumar4-Mar-07 17:04 
Questionlandascare and ........... Pin
amaneet4-Mar-07 3:21
amaneet4-Mar-07 3:21 
AnswerRe: landascare and ........... Pin
Vasudevan Deepak Kumar4-Mar-07 17:06
Vasudevan Deepak Kumar4-Mar-07 17:06 
QuestionFile. ! Pin
KOKEMO4-Mar-07 3:04
KOKEMO4-Mar-07 3:04 
Hey there. Printing problem is solved. Thanks anyways

Okay in my previous programs I used to use arrays to hold the entries and information and when the program was to be terminated I used to write back them to a file by using write_ entries () procedure. In this one I want to do now, I don’t want to use this way because of the structure of the program that it follows. I want to save them instantly as the button_save is clicked.

1. Open file ( sr=IO.streamReader)
2. Read till end of file is reached (do while sr.peek <> -1)
3. Now that end of file is reached does the writing (sw.writeline)

But how we can do the writing, we can’t, unless the process of reading to be closed
Which means sr.close() and when it is closed the pointer is set again to beginning.
Writing to file now would be writing instead of the first line again.


How to change the POINTER settings? Sounds silly but i am a newbie to .NET Hmmm | :| : doh:
How you do the writing then?


↔☻◄ك╦N
AnswerRe: File. ! Pin
Dave Kreskowiak4-Mar-07 3:44
mveDave Kreskowiak4-Mar-07 3:44 
Questionchecking programically Pin
amaneet4-Mar-07 2:54
amaneet4-Mar-07 2:54 
AnswerRe: checking programically Pin
JUNEYT4-Mar-07 4:41
JUNEYT4-Mar-07 4:41 
AnswerRe: checking programically Pin
Vasudevan Deepak Kumar4-Mar-07 17:10
Vasudevan Deepak Kumar4-Mar-07 17:10 
Questiondate format Pin
amaneet4-Mar-07 2:43
amaneet4-Mar-07 2:43 
AnswerRe: date format Pin
Dave Kreskowiak4-Mar-07 3:38
mveDave Kreskowiak4-Mar-07 3:38 
AnswerRe: date format Pin
haggenx5-Mar-07 12:26
haggenx5-Mar-07 12:26 
Questiondifference between Pin
amaneet4-Mar-07 2:36
amaneet4-Mar-07 2:36 
AnswerRe: difference between Pin
Dave Kreskowiak4-Mar-07 3:37
mveDave Kreskowiak4-Mar-07 3:37 
Questionautomatic shutdown of computer Pin
Member 38161214-Mar-07 2:10
Member 38161214-Mar-07 2:10 
AnswerRe: automatic shutdown of computer Pin
JUNEYT4-Mar-07 2:32
JUNEYT4-Mar-07 2:32 
AnswerRe: automatic shutdown of computer Pin
Vasudevan Deepak Kumar4-Mar-07 17:12
Vasudevan Deepak Kumar4-Mar-07 17:12 
QuestionCodeDom IdentityInequality Problem Pin
simonh234-Mar-07 0:20
simonh234-Mar-07 0:20 
AnswerRe: CodeDom IdentityInequality Problem Pin
Dave Kreskowiak4-Mar-07 3:33
mveDave Kreskowiak4-Mar-07 3:33 
QuestionRe: CodeDom IdentityInequality Problem [modified] Pin
simonh234-Mar-07 12:47
simonh234-Mar-07 12:47 
AnswerRe: CodeDom IdentityInequality Problem Pin
Dave Kreskowiak5-Mar-07 3:23
mveDave Kreskowiak5-Mar-07 3:23 
GeneralRe: CodeDom IdentityInequality Problem Pin
simonh235-Mar-07 22:40
simonh235-Mar-07 22:40 

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.