How to open large .TXT file

1153125 pts.
Tags:
.txt file
Windows 10
I have a fairly large .TXT file (I think it's roughly 2 GB) and I can't figure out how to open it. Notepad and Adobe Dreamweaver say it's too big. I don't want to download any third-party software either. How can I open it locally? I'm on Windows 10.
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

Text files used by Notepad should be no larger than 45K. Notepad cannot open a file that exceeds 54K in size  which is small and does not allow you to continue editing a file if the file size reaches between 45K and 54K. This is an old legacy program that I do not think has changed since the 80’s. With all the other options available they probably saw no need to expand its function.


Try Wordpad included with Windows instead as far as I know the only limit is amount of memory in your computer less what the OS takes up. So 4 gig of RAM less the OS overhead may only leave about 3 gig for a file in memory. 

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Subhendu Sen

    As you did not want to download 3rd party tool, there is a way to view this type of large file through command prompt. You can use 'More' command to view this text file. Open command prompt, and try this one,

    more /e /p /s /c < <yourfilename.txt | more

    and press Enter key. Here replace the orginal file name with yourfilename.txt.

    141,290 pointsBadges:
    report
  • Subhendu Sen
    You did not mention why you won't download 3rd party tool. However if you are not so comfortable in command prompt, you can navigate here (Microsoft Store) and download a small tool that can help to make easy your job: https://www.microsoft.com/en-in/store/p/large-text-viewer/9nblggh4mcm8

    141,290 pointsBadges:
    report
  • Kevin Beaver
    I'm not sure why you'd need to view a 2GB text file. That could roughly contain the history of the world! If @Subhendu's suggestions don't work, you might try Notepad++ or UltraEdit.
    27,525 pointsBadges:
    report
  • TheRealRaven
    It's not clear why anyone would think that Notepad is limited to "54 K" or so. I have a document open in Notepad in another window right now that's 5.2 MB (5,213,937 bytes) in size, and I've had far larger ones in the past.

    But I agree that trying to work to documents of a GB and more doesn't make much sense with Notepad even though it can be done. Notepad simply isn't coded to handle files of such sizes. It becomes much less efficient as sizes get larger. It will attempt to open and process each byte in the file before rendering the first full window of characters. It does its work in memory on the entire file.
    36,430 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: