Windows Client OS

Tip for Opening Large Text Files in Windows

As system administrators, we commonly have to deal with log files. This also rings true for developers, DBAs, and standard support personnel, as well. Regardless of who performs the task, the task itself is identical: Pull a log file from a local or remote server, open it, find some specific text string, and try to troubleshoot the system, application or code.

These files can be in many formats, sizes, and encoding types. Files may or may not contain the text in specific formats, such as CSV and LDF. Huge text files may also differ by the number of lines they contain and the reason for opening the files may also differ.

Regardless of the difference in file formats, one thing is certain: In Windows, the built-in text editing application, Notepad, is incapable of opening such files.

Trivia: Back in the days of Windows 3.11, Notepad was capable of opening files less than than 45 KB. In Windows 95, this limitation was extended to 64 KB.

Sponsored Content

Maximize Value from Microsoft Defender

In this ebook, you’ll learn why Red Canary’s platform and expertise bring you the highest possible value from your Microsoft Defender for Endpoint investment, deployment, or migration.

Unfortunately, I could not find any new documentation for these limits. I tried looking for a current and update file size limit for Notepad under Windows 7, 8, or 10. I couldn’t find a concrete answer on Microsoft’s website or MSDN. So I did some testing, and what I found was that Notepad in Windows 8.1 was able to open large files, up to 524,288 KB (0.5 GB).

Attempting to open such a large text file in Microsoft Notepad in Windows 8.1 produces the following effect while Notepad is trying to load the file:

Opening a large file in Notepad in Windows 8.1. (Image Credit: Daniel Petri)
Opening a large file in Notepad in Windows 8.1. (Image Credit: Daniel Petri)

Eventually, the file did open.

I wasn’t able to open a file larger than that. Next, I attempted to open a 1 GB file and received the following error:

The XYZ.txt file is too large for Notepad.

Use another editor to edit the file.

Notepad error. (Image Credit: Daniel Petri)
Notepad error. (Image Credit: Daniel Petri)

Notepad was unable to open the file.

So, how do we open file larger than 1 GB in Notepad? Here come the third-party freeware tools to the help! I’ve put up a list of some of my favorite text editing apps, specifically the ones that are capable of opening huge files. Note that some great text editors, such as Notepad++ are omitted from this list because they are limited in file sizes.

Also note that this list is not a full list of all the tools available, it’s simply a list that outlines tools that I found useful for the task. Do you have other suggestions? Write to me, and I will gladly add them to the list. In addition, all tools listed below are free.

Large Text File Viewer

This is a very useful tool for viewing very large text files. It uses little memory and is able to open large files instantly. It doesn’t require any installation, just download the executable, place it in a folder of your choice, then run LTFViewr5u.exe, drag and drop the file you want to open, and the tool will immediately load the file and make it available for analyzing.

Large Text file viewer. (Image Credit: Daniel Petri)
Large Text file viewer. (Image Credit: Daniel Petri)

EMEditor

The EMEditor supports powerful macros, Unicode, and very large files. It is available in both 64-bit and 32-bit builds.

EMEditor. (Image Credit: Daniel Petri)
EMEditor. (Image Credit: Daniel Petri)

Universal Viewer Free

The free Universal Viewer can open many different formats, including text and binary. Note that some users complain that it’s not fully portable, yet others said it was the only tool capable of opening specifically formatted files. So I guess your milage may vary, but I thought it was still worth mentioning.

Universal Viewer. (Image Credit: Daniel Petri)
Universal Viewer. (Image Credit: Daniel Petri)

 

LogExpert

If you’re interested specifically in reading huge log files you may find LogExpert to be valuable. It is a Windows tail program and serves as a GUI replacement for the Unix tail command.

LogExpert. (Image Credit: Daniel Petri)
LogExpert. (Image Credit: Daniel Petri)

GVim

The GVim editor is very useful for editing programs and other plain text files. All commands are given with normal keyboard characters, so those who can type with ten fingers can work very fast. Additionally, function keys can be defined by the user, and the mouse can be used.

GVim. (Image Credit: Daniel Petri)
GVim. (Image Credit: Daniel Petri)

Emacs on Windows

Emacs is a well known UNIX text editor, mostly known for its extensibility, and it has several ports to Windows. This is one of them.

Emacs for Windows. (Image Credit: Daniel Petri)
Emacs for Windows. (Image Credit: Daniel Petri)

I hope you found my list of free tools useful. Please let me know in the article comments if you think any should be added to the list.

 

Related Topics:

BECOME A PETRI MEMBER:

Don't have a login but want to join the conversation? Sign up for a Petri Account

Register
Comments (1)

One response to “Tip for Opening Large Text Files in Windows”

  1. <p>I have opened a 1.63GB text file using Notepad++ so maybe it should be included in the list. I haven't tried to find the maximum file size limit but the file I opened was an error log file and it contained 12,444,243 lines of errors. Needless to say I did <strong>not </strong>read the whole file. :-)</p><p><br></p><p>[Edit] I neglected to mention it was v7.8.1, 64bit.</p>

Leave a Reply

External Sharing and Guest User Access in Microsoft 365 and Teams

This eBook will dive into policy considerations you need to make when creating and managing guest user access to your Teams network, as well as the different layers of guest access and the common challenges that accompany a more complicated Microsoft 365 infrastructure.

You will learn:

  • Who should be allowed to be invited as a guest?
  • What type of guests should be able to access files in SharePoint and OneDrive?
  • How should guests be offboarded?
  • How should you determine who has access to sensitive information in your environment?

Sponsored by: