Solved

More bytes added when saving a file

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Simple Delphi Question 9 90
creating threads in delphi 1 104
RESTRequest Parameter 4 30
how to make 2 step back? ..\..\ ExtractFilePath (paramstr(0)) 5 14
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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
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…

773 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