Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Why does Notepad change the format of it's content?


  • Please log in to reply
2 replies to this topic

#1 Richard ken

Richard ken

  • Members
  • 247 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Local time:12:15 AM

Posted 15 April 2013 - 07:53 PM

Whenever I save something from the internet to a text file and open the file with Notepad, it will bunch up all the words and sentence into a group of words. Example: Attached File  Notepad.JPG   52.65KB   11 downloads

 

However, when I open the file in Wordpad, it will come out like this: Attached File  Wordpad.JPG   57.71KB   10 downloads

 

So I was wondering does anyone know why Notepad do this. Also my computer in a Window XP.



BC AdBot (Login to Remove)

 


#2 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,260 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:01:15 AM

Posted 15 April 2013 - 08:38 PM

This has to do with how Notepad recognizes the end of a line. In Notepad, only a carriage-return character followed by a line-feed character is interpreted as the end-of-line marker. Other systems like Mac OS X and Linux use only the line-feed character. Whenever Notepad opens a file that uses only the line-feed character (for example, if the file was originally written on a non-Windows system) it doesn't detect a proper end-of-line marker and so interprets the text as being on a single long line.

 

Wordpad supports many end-of-line conventions, which is why it can display both the Windows and Mac/Linux conventions correctly. You might want to look at one of the many Notepad replacement editors available online. My favorite is Notepad++, which includes tools to convert a file between different end-of-line conventions.


Edited by Andrew, 15 April 2013 - 08:39 PM.


#3 Richard ken

Richard ken
  • Topic Starter

  • Members
  • 247 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Local time:12:15 AM

Posted 15 April 2013 - 10:46 PM

Thank you Andrew for your answer, that answers a lot of question that I have about notepad






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users