Solved

More bytes added when saving a file

Posted on 2002-06-27
3
145 Views
Last Modified: 2010-04-04
I am using

AssignFile(F,'filename')
Rewrite(F)
Writeln(F)
Close(F)

to save an opened TextFile. I found that there is one or two more bytes (#13#10) added in the end of text file each time. Can some one tell me why and how to ignore that bytes ?

ysimon
0
Comment
Question by:ysimon
3 Comments
 
LVL 14

Accepted Solution

by:
DragonSlayer earned 50 total points
ID: 7115572
WriteLn will write with a line feed and carriage return (equivalent to you terminating each line by pressing the ENTER button of your keyboard).

if you do not want the extra characters, use Write instead of WriteLn.
0
 

Expert Comment

by:CleanupPing
ID: 9343144
ysimon:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 5

Expert Comment

by:Lukasz Lach
ID: 9454036
ysimon,
No comment has been added lately (17 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to DragonSlayer http:#7115572

Please leave any comments here within 7 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

anAKiN
EE Cleanup Volunteer
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

Suggested Solutions

Title # Comments Views Activity
Find and Replace Stream with 0s 8 71
how to resize animated Gif image in delphi ? 1 45
CheckListBox usage 3 80
how can i delete one control based on its tagstring ? 6 34
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

740 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