From: Maciej Sobczak on
Hi,

There is a Form parameter in file creation/open procedures (for
example Ada.Sequential_IO.Create).
The corresponding function allows to retrieve the "form" for the file
object that is already open.

Is there any use for the file "form" on POSIX or Windows?

--
Maciej Sobczak * www.msobczak.com * www.inspirel.com

Database Access Library for Ada: www.inspirel.com/soci-ada
From: Randy Brukardt on
Sure, but it's implementation-defined, and thus may vary from compiler to
compiler. Can't do anything portable with it.

Janus/Ada uses Form to control the file sharing mode on Windows, and also to
set (or not) the CP/M compatibility mode (where <ctrl>-Z is treated as a
file terminator). I'm pretty sure GNAT has such capabilities, too, but I
think the syntax is different. (Remember that Form is a String).

Randy.

"Maciej Sobczak" <see.my.homepage(a)gmail.com> wrote in message
news:6f4661c3-0b11-4b2e-a258-40b7749dce97(a)y21g2000hsf.googlegroups.com...
> Hi,
>
> There is a Form parameter in file creation/open procedures (for
> example Ada.Sequential_IO.Create).
> The corresponding function allows to retrieve the "form" for the file
> object that is already open.
>
> Is there any use for the file "form" on POSIX or Windows?
>
> --
> Maciej Sobczak * www.msobczak.com * www.inspirel.com
>
> Database Access Library for Ada: www.inspirel.com/soci-ada