Click here to Skip to main content
15,881,967 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionReset an integer Pin
rudemusik19-Feb-07 15:38
rudemusik19-Feb-07 15:38 
AnswerRe: Reset an integer Pin
Christian Graus19-Feb-07 19:10
protectorChristian Graus19-Feb-07 19:10 
GeneralRe: Reset an integer Pin
rudemusik20-Feb-07 13:20
rudemusik20-Feb-07 13:20 
GeneralRe: Reset an integer Pin
TwoFaced20-Feb-07 18:32
TwoFaced20-Feb-07 18:32 
GeneralRe: Reset an integer Pin
rudemusik21-Feb-07 5:31
rudemusik21-Feb-07 5:31 
AnswerRe: Reset an integer Pin
lucky.prem19-Feb-07 20:03
lucky.prem19-Feb-07 20:03 
GeneralRe: Reset an integer Pin
rudemusik20-Feb-07 13:28
rudemusik20-Feb-07 13:28 
QuestionRead last line of logfile and close file immediately Pin
bodobe19-Feb-07 10:10
bodobe19-Feb-07 10: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 10:14
professionalMarcus J. Smith19-Feb-07 10:14 
GeneralRe: Read last line of logfile and close file immediately Pin
bodobe19-Feb-07 10:23
bodobe19-Feb-07 10:23 
GeneralRe: Read last line of logfile and close file immediately Pin
Marcus J. Smith19-Feb-07 10:29
professionalMarcus J. Smith19-Feb-07 10:29 
GeneralRe: Read last line of logfile and close file immediately Pin
bodobe19-Feb-07 10:40
bodobe19-Feb-07 10:40 
GeneralRe: Read last line of logfile and close file immediately Pin
Marcus J. Smith19-Feb-07 10:47
professionalMarcus J. Smith19-Feb-07 10:47 
AnswerRe: Read last line of logfile and close file immediately Pin
TwoFaced19-Feb-07 13:06
TwoFaced19-Feb-07 13:06 
GeneralRe: Read last line of logfile and close file immediately Pin
bodobe20-Feb-07 20:43
bodobe20-Feb-07 20:43 
GeneralRe: Read last line of logfile and close file immediately Pin
TwoFaced20-Feb-07 21:32
TwoFaced20-Feb-07 21:32 
GeneralRe: Read last line of logfile and close file immediately Pin
Marcus J. Smith23-Feb-07 5:20
professionalMarcus J. Smith23-Feb-07 5:20 
QuestionVB6.0 - Common Dialog "ShowSave" method to get a Folder? Pin
ChemmieBro19-Feb-07 9:55
ChemmieBro19-Feb-07 9:55 
QuestionEncrypted source files Pin
Fernando A. Gomez F.19-Feb-07 8:38
Fernando A. Gomez F.19-Feb-07 8:38 
AnswerRe: Encrypted source files Pin
Dave Kreskowiak19-Feb-07 9:33
mveDave Kreskowiak19-Feb-07 9:33 
GeneralRe: Encrypted source files Pin
Fernando A. Gomez F.19-Feb-07 10:43
Fernando A. Gomez F.19-Feb-07 10:43 
QuestionUseing Serial Port Pin
Max Bayne19-Feb-07 8:13
Max Bayne19-Feb-07 8:13 
AnswerRe: Useing Serial Port Pin
Ankur.Bakliwal19-Feb-07 17:35
Ankur.Bakliwal19-Feb-07 17:35 
Questiondisable groupbox Pin
jds120719-Feb-07 7:56
jds120719-Feb-07 7:56 
AnswerRe: disable groupbox Pin
Marcus J. Smith19-Feb-07 8:19
professionalMarcus J. Smith19-Feb-07 8: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.