From: "Stefan Neumann" <stefan.neumann@mgi.de>
Newsgroups: comp.databases.oracle.tools
Subject: Problem with writing a line feed with text_io.put / utl_file.put in Oracle Forms
Date: Wed, 6 Jun 2001 14:45:30 +0200
Lines: 24
X-Newsreader: Microsoft Outlook Express 4.72.3612.1700
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700
NNTP-Posting-Host: 164.139.43.24
Message-ID: <3b1e266a@194.120.211.23>
X-Trace: 6 Jun 2001 14:47:38 +0100, 164.139.43.24


i have some binary data which i want to write in a file with
text_io.put(file_handle, chr(xxx)).
everything is fine unless xxx is 10 (0Ah). then the put-function inserts
instead of 0Ah the code 0Dh 0Ah (inserting automatically a carriage return).
Is
there a possibility to avoid this automatic conversion or does another
write-function exist?
sample code:
declare
File_Handle text_io.File_Type;
BEGIN
File_Handle := text_io.FOpen ('C:\Temp\AAAA.txt', 'w');
text_io.Put (File_Handle, chr(10));
text_io.fclose (File_Handle);
END;

Viewing the file aaaa.txt with a hex-editor, i got 0D 0H

THANKS FOR HELPING
Stefan Neumann





