Click here to Skip to main content
15,564,500 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionReset an integer Pin
rudemusik19-Feb-07 16:38
rudemusik19-Feb-07 16:38 
AnswerRe: Reset an integer Pin
Christian Graus19-Feb-07 20:10
mveChristian Graus19-Feb-07 20:10 
GeneralRe: Reset an integer Pin
rudemusik20-Feb-07 14:20
rudemusik20-Feb-07 14:20 
GeneralRe: Reset an integer Pin
TwoFaced20-Feb-07 19:32
TwoFaced20-Feb-07 19:32 
GeneralRe: Reset an integer Pin
rudemusik21-Feb-07 6:31
rudemusik21-Feb-07 6:31 
AnswerRe: Reset an integer Pin
lucky.prem19-Feb-07 21:03
lucky.prem19-Feb-07 21:03 
GeneralRe: Reset an integer Pin
rudemusik20-Feb-07 14:28
rudemusik20-Feb-07 14:28 
QuestionRead last line of logfile and close file immediately Pin
bodobe19-Feb-07 11:10
bodobe19-Feb-07 11:10 
Hi all,

I'm working on the following problem with VB2005: An application (which is not under my control) appends a new line of information to a logfile (*.txt) once per second. A filesystemwatcher raises an event any time the filesize has changed. I have to open the file, read the last line of new information and close the file immediately to allow the next line to be written by 'the other' software.
The problems:
1. The log file is big and becomes bigger every second. So I want to avoid reading the complete file and throw everything away except of the last new line. Has anyone got an idea, how to make a slim 'last-line-reader'?
2. It seems, that the file is not closed after reading immediately, which corresponds to what I find in several books. Any chance to close a file again immediately?

Thanks to all, bodobe
AnswerRe: Read last line of logfile and close file immediately Pin
Marcus J. Smith19-Feb-07 11:14
professionalMarcus J. Smith19-Feb-07 11:14 
GeneralRe: Read last line of logfile and close file immediately Pin
bodobe19-Feb-07 11:23
bodobe19-Feb-07 11:23 
GeneralRe: Read last line of logfile and close file immediately Pin
Marcus J. Smith19-Feb-07 11:29
professionalMarcus J. Smith19-Feb-07 11:29 
GeneralRe: Read last line of logfile and close file immediately Pin
bodobe19-Feb-07 11:40
bodobe19-Feb-07 11:40 
GeneralRe: Read last line of logfile and close file immediately Pin
Marcus J. Smith19-Feb-07 11:47
professionalMarcus J. Smith19-Feb-07 11:47 
AnswerRe: Read last line of logfile and close file immediately Pin
TwoFaced19-Feb-07 14:06
TwoFaced19-Feb-07 14:06 
GeneralRe: Read last line of logfile and close file immediately Pin
bodobe20-Feb-07 21:43
bodobe20-Feb-07 21:43 
GeneralRe: Read last line of logfile and close file immediately Pin
TwoFaced20-Feb-07 22:32
TwoFaced20-Feb-07 22:32 
GeneralRe: Read last line of logfile and close file immediately Pin
Marcus J. Smith23-Feb-07 6:20
professionalMarcus J. Smith23-Feb-07 6:20 
QuestionVB6.0 - Common Dialog "ShowSave" method to get a Folder? Pin
ChemmieBro19-Feb-07 10:55
ChemmieBro19-Feb-07 10:55 
QuestionEncrypted source files Pin
Fernando A. Gomez F.19-Feb-07 9:38
Fernando A. Gomez F.19-Feb-07 9:38 
AnswerRe: Encrypted source files Pin
Dave Kreskowiak19-Feb-07 10:33
mveDave Kreskowiak19-Feb-07 10:33 
GeneralRe: Encrypted source files Pin
Fernando A. Gomez F.19-Feb-07 11:43
Fernando A. Gomez F.19-Feb-07 11:43 
QuestionUseing Serial Port Pin
Max Bayne19-Feb-07 9:13
Max Bayne19-Feb-07 9:13 
AnswerRe: Useing Serial Port Pin
Ankur.Bakliwal19-Feb-07 18:35
Ankur.Bakliwal19-Feb-07 18:35 
Questiondisable groupbox Pin
jds120719-Feb-07 8:56
jds120719-Feb-07 8:56 
AnswerRe: disable groupbox Pin
Marcus J. Smith19-Feb-07 9:19
professionalMarcus J. Smith19-Feb-07 9:19 

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.