Solved

Append Command: Appending on a new line

Posted on 2008-06-19
5
586 Views
Last Modified: 2012-05-05
When using the MS Windows ftp.exe there is an append command. From what I have seen, when appending text files, it just directly appends the new file to the source file without making a new line.

For example:
Source: test
new: anothertest
outcome: testanothertest

I would like to see to see a new line before the new file is appended:
outcome: test
anothertest

How can I achieve this result?
0
Comment
Question by:bejhan
  • 3
  • 2
5 Comments
 
LVL 2

Expert Comment

by:Jamsb
ID: 21824053
It might be annoying, but you could do two appends. Create a text file with a carriage return in it, append that to the remote file, then append your other text file.
0
 
LVL 2

Expert Comment

by:Jamsb
ID: 21829177
With he other alternative adding a line to the start of the text file being appended.
0
 
LVL 1

Author Comment

by:bejhan
ID: 21833432
Okay if I have a blank line at the beginning of the appending text file it works. But I like your first suggestion better so that in my code I can just have it append the line return text file first so that I don't have to mess with my other files. However, the only problem is I can't get a text file to save with just a line return. When I open it again its always just blank again. Any idea of how to do this?
0
 
LVL 2

Accepted Solution

by:
Jamsb earned 125 total points
ID: 21859285
It can easily be done via notepad. Simply open Notepad press return then do File --> Save
CR.txt
0
 
LVL 1

Author Comment

by:bejhan
ID: 21859392
Ah, notepad just doesn't recognize it when you open the file again but it does exist. Okay.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question