Jump to content

Recommended Posts

Posted (edited)

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
Posted

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

 

Posted (edited)

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
Posted

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

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...