Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How do you add line breaks when writing to a notepad file?  (Read 3499 times)

0 Members and 1 Guest are viewing this topic.

bbman12

  • Guest
How do you add line breaks when writing to a notepad file?
« on: July 24, 2011, 04:40:54 PM »
How do you add line breaks when using DOS to write to a text document?

Example:

echo blahblah blah > test.txt
(Insert line break here)
echo blahblah > test.txt

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: How do you add line breaks when writing to a notepad file?
« Reply #1 on: July 24, 2011, 05:46:18 PM »
Code: [Select]
echo blahblah blah > test.txt
REM (Insert line break here)
echo blahblah >> test.txt

 8)

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: How do you add line breaks when writing to a notepad file?
« Reply #2 on: July 25, 2011, 07:52:25 AM »
Code: [Select]
echo. >>text.txt
I was trying to dereference Null Pointers before it was cool.

Salmon Trout

  • Guest