Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

More bytes added when saving a file

Posted on 2002-06-27
3
144 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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
FMX StringGrid1->Canvas->FillRect Problem 3 170
Downloading email attachments 2 79
TEMBEDDEDWB how can i change its user agent ? 8 69
Breakpoint doesn't stop in my variable 3 30
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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
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…

856 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