Using the E editor included with IBM PC DOS 7, I can't open a particular plain text file without encountering a "Not enough memory" error. The editor was invoked with the
/S switch to make it handle large files (i.e.
E.EXE /S FOO.TXT), and E hasn't had problems opening others, both larger and smaller than this one. The file in question has 40320 lines and 1572480 characters, and can be generated by a simple program:
#!/usr/bin/env python3 words = ('one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight') def permuts(items): if len(items) < 2: yield tuple(items) return for i in range(0, len(items)): for rest in permuts((*items[:i], *items[i+1:])): yield items[i], *rest for p in permuts(words): print(' '.join(p), end='\r\n')
Note: PC DOS 2000 (it also has E 3.13v) was also tried with the same result. None of the other editors tested, be it MELite (DOS, same configuration), Notepad (Windows) or vi (Linux), has any problem opening or editing this file as plain text. Perhaps someone can shed some light on why E is encountering difficulty with this specific example? In case it's relevant, testing was conducted with PC DOS 7 virtual machines, in both VirtualBox and VMware formats.