Good morning Kevin and Eddie,
the open command is opening two devices
1 is probably the printer (assigns it to user)
2 is the file on the C drive named DATAFILE.TXT.
Most of the commands in MUMPS allow multilple arguments.
Bob
On Wed, 2005-11-16 at 06:34, Eddie Hagood wrote:
> Hey all,
>
> This is Kevin T. I am working with Eddie Hagood, who is new in our
> office and interested in learning M (Great!).
>
> We are going through some example codes, and I am having a hard time
> explaining the OPEN command. We have R. Walters book, and he gives
> examples like this:
> OPEN 1,2:("C":"DATAFILE.TXT")
> ...
> USE 2 READ RECORD
> ...
>
> I, on the other hand, in the past have found and copied code like
> this:
> SET FNAME="/tmp/mytext.txt"
> OPEN FNAME
> USE FNAME
> WRITE "TEXT OUT GOES HERE."
> USE $P
>
>
> I know that OPEN has LOTS of parameters, but I don't understand the
> "1,2" above. Is this assigning the output file a device number or
> something?
>
> Also, how do I specify overwriting vs. appending?
>
> Thanks
> Kevin & Eddie.
>
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Hardhats-members mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hardhats-members