How do I access this text file?

No problem, but you might be overestimating the complication. Just visit this site (it’s a fully online editor, no need to install anything) and load up your file:

It should be very obvious if there’s anything there or not. Just scroll through the file and see if you recognize any of the original text. If not, it’ll likely show up as a bunch of some junk character.

Wow, this editor war discussion makes me feel 30 years younger.
I agree with the hex editor suggestion. I suspect the printer is just ejecting pages it can make no sense of. And if the hex editor shows that most of the content is there, it can be reclaimed, even if painfully.
I’ve done it myself.

There is a large clue right here in plain sight. At the risk of insulting folks with something real basic …

Regardless of what you think the file contains, or what shape the contents are, Notepad thinks it is one line tall and 24000 characters wide.

Which means that you pushing the up or down arrow, or page up and page down buttons do nothing since the file is just one line tall.

To see the contents (if any exist) you need to scroll to the right. Perhaps a very long way to the right.

You might also try selecting the Format >> Word Wrap feature from the menu and see whether suddenly you’ve got a lot of visible text below a blank area at the top.

With the Word Wrap on (checkmark visible on the menu item), if you still see nothing then I’d be very inclined to say the file has been destroyed somehow.

This sounds like the kind of file a cat might produce.

Or a pet snake. They prefer long and thin.

Funny, you’d think cats would produce shorter than average lines becasue the enter key is larger than most and should be hit at random proportionally more often.

Then again not knowing which spots on the keyboard are any given cat’s preferred home row and home keys, we can’t say too much. Perhaps a bit of spilled food makes @Little_Nemo’s tab key and spacebar smell especially interesting.

Still, this may well be a PEBKAC error* but in this case the C stands for Cat. :wink:


*

It’s easy to get a lot of white space in a Notepad doc just by letting a book or something lean on the space or tab key. No need for pet interference.

I tried the HexEd.it site and it showed me this file is full of nothing but zeroes. I think what we have here is a dead file.

Certainly seems to be.

Did CHKDSK report any (further) corruption, or was that file the only victim?

I would say you saved an entire file of whitespace somehow, or a file got corrupted to be entirely whitespace.

Zeros are not normal whitespace, though. You would have to work a bit to type a bunch of zeros into a text editor and not notice.

[It’s easy with vim: 20000i control-q control-@ escape gets you 20000 zeros. But you still would not type that in by accident, nor have we erased anything that was already there…]

This may be a side effect of sudden power loss on NTFS-formatted storage with write-caching enabled.

Write-caching “Improves system performance[…], but a power outage or equipment failure might result in data loss or corruption.” If you are using a modern Windows system there is a very high chance that your storage is NTFS-formatted with write-caching enabled.

~Max

In Linux or other Unix-heritage operating systems with a standard userland toolset, it’s as easy as mkfile 20k <filename>.txt.

I personally have had a file truncated to zero length after a power failure, but can’t recall having the contents replaced by nulls.

Now I’m wondering if a block-by-block scan of the OP’s disk might recover any of the original contents…

@Max_S: HDDs can do that on their own even if Windows is set to not write-cache.

HDD firmware is infamous for lying to Window’s attempts to confirm that no kidding the data is really really saved, not just cached somewhere in the drive’s own volatile storage.

Why lie to the OS? For better advertised performance.

I’m not up to date enough on SSD firmware to say whether they pull the same crap. If forced to bet, I’d bet “Yes”.