Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

And yet, this text editor too loads the whole file into memory when you open it. No modern text editor really should do that and support files of essentially arbitrary size by loading at most a few gigabytes around the cursor.


How would you calculate line numbers if you did that?


Exactly, not loading the whole file into memory works well only for hex editors.


It does have the benefit that if the file changes or is deleted then you can carry on working with the old version. (It notifies you when this and lets you choose whether to reload/close.)


Wouldn't windows not let you do that if the file is opened exclusively? I also assume you can retain a handle to a "deleted" file on windows, like you can on *nix machines.


I think you're just restating the same benefit in a different way: you can modify or delete a file (or even just open it without modifying it) in another process while Notepad++ has it open.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: