• Login
Community
  • Login

Corrupted file. Error on line -1

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 1.5k Views
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.
  • S
    Sebastian Sjögren
    last edited by Jul 25, 2017, 12:54 PM

    Hi,

    i have corrupeted file which can be viewed but Notepad and Notepad++ and if i try to open it with XML editor or the program it should be opened with it gives an error message that there is an error on line -1.

    Is there feature in notepad ++ which I can active that I can see the the -1 and zero line and maybe delete them and get the file to work.

    Looking for a easy way to fix it.

    1 Reply Last reply Reply Quote 0
    • A
      AdrianHHH
      last edited by Jul 26, 2017, 10:09 AM

      The negative line number in the error message suggests that the beginning of the file, or possibly the end, are not correct. Notepad++ will show all of the lines and characters in the file.

      Try opening a file that is not corrupt in Notepad++ and compare the first few characters against the first few of the corrupt file. It may be useful to set menu => View => Show symbol => Show all characters. Also compare the file encodings as shown on the Notepad++ status line (i.e. at the bottom of the window).

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors