Take the 2-minute tour ×
Software Recommendations Stack Exchange is a question and answer site for people seeking specific software recommendations. It's 100% free, no registration required.

I have text file, like log.txt which constantly updates. I want some text editor which I can open on separate monitor to display this file. I want this text editor to "reload" text file from disk periodically (every N seconds) and to scroll down. What can you recommend?

share|improve this question

6 Answers 6

up vote 4 down vote accepted

If you prefer a GUI, you can use BareTail:

  • free and paid versions available
  • Windows
  • Portable
  • Like "tail -f" on Unix systems, but with many more features

enter image description here

  • Tail multiple files

enter image description here

  • Configurable highlighting

enter image description here

enter image description here

enter image description here

  • Optimised real-time viewing engine
  • View files of any size (> 2GB)
  • Scroll to any point in the whole file instantly
  • View files over a network
  • Configurable line wrapping
  • Configurable TAB expansion
  • Configurable font, including spacing and offset to maximise use of screen space
share|improve this answer
    
i like this tool, very handy –  javapowered Sep 3 at 20:09
    
i tried all suggestions but this tool is the best, it's very fast and works fine even when log file grows fast –  javapowered Sep 4 at 6:07

If you just want to watch the log as it grows, look at the 'tail' utility in a command line window.

There's a port of some of the most common unix utilities to Windows at http://unxutils.sourceforge.net/ That package has the advantage that it requires nothing in the way of support - just drop the files somewhere in your path and they just work.

To use tail to watch a log file, open up a command line window (cmd.exe) and do:

tail -f <log.txt>

It'll just keep scrolling out the contents as the log file grows. Ctrl-C to stop.

share|improve this answer
    
thanks, this works –  javapowered Sep 3 at 12:43

If you have Git (or GitHub) installed, you can find the tail utility available in Git Shell*. You can use it to follow any file:

tail -f logfile.log

Those experienced with Unix and Linux terminals will find this very familiar. Try tail --help for more information.

* Usually this is a modified instance of Windows PowerShell.

You can also find the less utility installed with Git. As per the help text:

                         MOVING
F                    Forward forever; like "tail -f".

Note: I don't recommend installing Git just for this. But if you already have Git installed, there's no need to find third party tail or less utilities.

share|improve this answer

You can use Windows PowerShell (free, included in Windows XP and later):

Get-Content test.txt -Wait

enter image description here

To change width:

enter image description here

enter image description here


Useful info left by ADTC as a comment: you should also change the Defaults if you want the width to be saved and restored on a new PowerShell instance, see screenshot below.

enter image description here

share|improve this answer
    
i like it because it doesn't require additional software. default window width is 80, can I add some argument to change window width to 120 or 150? –  javapowered Sep 3 at 20:04
    
@javapowered sure, added to answer. –  Franck Dernoncourt Sep 3 at 21:38
1  
You may want to mention that you should also change the Defaults if you want the width to be saved and restored on a new PowerShell instance. You can use this screenshot link. –  ADTC Sep 4 at 4:03
1  
@ADTC Thanks, added in answer! –  Franck Dernoncourt Sep 4 at 21:49

Also, less +F log.txt

The advantage of less, is that ctrl-c takes you back to less. And shift-f goes back to follow mode.

share|improve this answer
1  
The question is tagged Windows. I don't think less would work there –  Timmy Sep 3 at 19:01

Universal Viewer Free can reload file, even big one, and follow its tail on reload.

It's not editor, only viewer, so can see 4GB log files.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.