Solved

Append Command: Appending on a new line

Posted on 2008-06-19
5
583 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
Migration of Exchange mailbox can be done with the ExProfre.exe tool. But at times, when the ExProfre.exe tool migrates the Exchange Server user profile, it results in numerous synchronization problems. Synchronization error messages appear in the e…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now