1
% @(#)write_file.hlq 19.1 (ESO-IPG) 02/25/03 14:03:51
2
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3
%.COPYRIGHT (c) 1992 European Southern Observatory
6
%.KEYWORDS MIDAS, help files, WRITE/FILE
7
%.PURPOSE On-line help file for the command: WRITE/FILE
8
%.VERSION 1.0 02-JUN-1992 : Creation, KB
9
%----------------------------------------------------------------
13
WRITE/FILE 23-SEP-1992 KB
15
WRITE/FILE file_id charbuf
16
write into an ASCII file
19
Write into an ASCII file which was opened before via the OPEN/FILE
23
WRITE/FILE file_id charbuf
24
WRITE/FILE file_id,KEY charkey
26
file_id = file id which was returned by a previous OPEN/FILE command
28
charbuf = character buffer to be written into file
30
charkey = name of character keyword holding the buffer to be written
31
into file (if file_id,KEY was given as 1. param);
33
The usual Midas syntax is used to write substrings of `charkey'
34
to the file, i.e. `charkey(2:20) to write the string beginning
35
at element 2 + ending at element 20 of `charkey'
38
OPEN/FILE, CLOSE/FILE, READ/FILE
41
If just the file_id is given, everything in the command line after
42
the `file_id' is written to the file including spaces. If you just
43
want to write a blank line, the spaces have to be enclosed by double
46
If file_id,KEY is given, the contents of the char. keyword `charkey'
47
are written to the file. Thus longer strings than 80 chars. can
50
The actual no. of characters written into the file is stored as the
51
2nd element of the integer keyword specified in the related
57
Write the string `Steglitz' into ASCII file with file_id 8.
59
WRITE/FILE {fctr(1)} Lankwitz Lichterfelde
60
Write string `Lankwitz Lichterfelde' into file with the file_id
61
which was stored in integer keyword fctr(1) in a previous
64
WRITE/FILE 7 {p4(11:20)}
65
Write the contents of parameter P4 (beginning at element 11) into
66
ASCII file with file_id 7.
68
WRITE/FILE 7,key p4(11:20)
69
Same as above. But note, that if a keyword holds a string longer
70
than 80 chars, this form of the command must be used.
73
Write a blank line into ASCII file with file_id 7.