Jump to content
RCLens

How to go to bottom in a log file?

Recommended Posts

RCLens

Hello, 

How to go to bottom in a log file? I tried _GUICtrlEdit_Scroll($idEdit, $SB_SCROLLCARET), but it seems to be related to GUIEdit.

 

Thanks for your help.

Edited by RCLens

Share this post


Link to post
Share on other sites
CosminV

Hello,

 

If I understood well and you want to see what is on the last line of an .txt then maybe this could be helpful:

 

FileOpen($filepath, 0)

$i = _FileCountLines($filepath)

FileReadLine($filepath, $i)

 

BR,

CosminV

 

Share this post


Link to post
Share on other sites
RCLens

The problem is that I can't use FileOpen and FileReadLine functions with my log file - yes, it's a log file and not a text file, my bad, I edited topic title.

To open my log file I use 

ShellExecute("file.log")

FileReadLine works fine for my log file.

Edited by RCLens

Share this post


Link to post
Share on other sites
RCLens

Thanks a lot Zedna, it's not what I was looking for, but your idea gave me another idea, that it could be really better that the subject of this topic : compare last and newest log file with FileReadLastChars and show what is added. :D

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×