Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

More bytes added when saving a file

Posted on 2002-06-27
3
Medium Priority
?
150 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 200 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

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…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

971 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