Solved

Append Command: Appending on a new line

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
If XP support has stopped, why am I still getting updates? 3 221
Windows 7 and Pro update issues 5 89
Run MS Access Module from Macro / Bat File 9 88
Can’t delete a file 14 161
cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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…

786 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