entity ch_18_04 is

end entity ch_18_04;


----------------------------------------------------------------


architecture test of ch_18_04 is
begin


  process is

    type data_file_type is file of character;
    variable ch : character;

    -- code from book:

    procedure write_to_file is
      file data_file : data_file_type open write_mode is "datafile";
    begin
      -- . . .
      -- not in book
      write(data_file, ch);
      -- end not in book
    end procedure write_to_file;

    -- end of code from book

  begin
    ch := 'A';
    write_to_file;
    ch := 'B';
    write_to_file;
    ch := 'C';
    write_to_file;

    wait;
  end process;


end architecture test;

<div align="center"><br /><script type="text/javascript"><!--
google_ad_client = "pub-7293844627074885";
//468x60, Created at 07. 11. 25
google_ad_slot = "8619794253";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />&nbsp;</div>