Solved

More bytes added when saving a file

Posted on 2002-06-27
3
141 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
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.
This video discusses moving either the default database or any database to a new volume.

706 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

17 Experts available now in Live!

Get 1:1 Help Now