Community
    • Login

    No external changes noted before file saved?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 1.6k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Martin SchumannM Offline
      Martin Schumann
      last edited by Martin Schumann

      Hello,

      I use a text file (logfile) that is edited by a program automatically.

      Since some time ago when I edited this file and wanted it to save, a message was displayed when the file in the meantime had been changed by the program (appended some text). So I could stop my changes and reload the file (missing MY changes but ok).

      But now sometimes there is a hint that it is not possible to write the file and the question if I want to save ‘as admin’. So I saved again and lost logs of the program (not good).

      In ‘File Status Auto-Detection’ I checked all 3 boxes to see the newest status of the log file.

      Can I change settings or is this a task for programming?

      Best greetings, Martin

      1 Reply Last reply Reply Quote 0
      • decodermanD Offline
        decoderman
        last edited by

        Look at it this way:
        You have a file that is actively used and updated regularly by another process.
        You open it in NPP and have it set to auto update.
        Fine so far, this is sort of a tail -f in *nix.

        Now you edit the live file in your editor, maybe at the same time as the other process does.
        What do you expect NPP to do?

        My advice: Don’t edit files that are (silently) updated by another process.
        You’ve learned your lesson, don’t make the same mistake again.

        1 Reply Last reply Reply Quote 4
        • Ben VorisB Offline
          Ben Voris
          last edited by

          I would expect Notepad++ to reliably inform me that the file was changed.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors