Solved

Append Command: Appending on a new line

Posted on 2008-06-19
5
588 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
USB backup batch file help needed. 9 121
no display on laptop 5 86
access denied when running native SQL tool: SQLIOSIM 2 65
How to convert Excel file to Text file 9 66
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…
VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
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…

734 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