Re: Forms 6.0 Text_IO question

From: Ivar Stolfot <iff_at_online.ee>
Date: Fri, 17 Mar 2000 12:28:19 +0200
Message-ID: <38d208bf$0$6903_at_diablo.uninet.ee>


[Quoted] I tried this code (copy/paste) and it worked (only replaced D: with C:).

"Ilia Sazonov" <ilia_sazonov_at_arktur.ru> wrote in message news:38d200c7_at_news.ptt.ru...
> Hello,
>
> I've got a problem with Text_IO buit-in package:
>
> There is a button in my form that runs the following code on
> Wehn-button-pressed trigger:
>
> DECLARE
> out_file Text_IO.File_Type;
> BEGIN
> out_file := Text_IO.Fopen('D:\test.txt', 'w');
> Text_IO.Put_Line(out_file, 'This is a test');
> Text_IO.Put_Line(out_file, 'And this is the end of the test');
> Text_IO.Fclose(out_file);
> END;
>
> A file is created but in contains only two new line characters (0x0D 0x0A
> 0x0D 0x0A).
> Where is my text?
>
> Please, tell me what am I doing wrong?
>
>
>
Received on Fri Mar 17 2000 - 11:28:19 CET

Original text of this message