Eddie, That link that Bhaskar gave is a good one. You might want to take a look at it.
Kevin On 11/17/05, Eddie Hagood <[EMAIL PROTECTED]> wrote: > Hey everyone, > > I just wanted to thank everyone for the quick responses. Coming from a > background in VB and C++, I am really trying to work at getting the syntax > of M down. Thus far, I really enjoy working with M. > > Thanks again, > Eddie > > ----- Original Message ----- > From: "K.S. Bhaskar" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Wednesday, November 16, 2005 10:31 AM > Subject: Re: [Hardhats-members] "OPEN" questions > > > > Eddie / Kevin -- > > > > IO parameters in M are different for each implementation (yes, the > > standard is to be different). You will have more luck with the GT.M > > Programmers Guide > > (http://www.sanchez-gtm.com/user_documentation/GTM-PG-UNIX44/index.htm) > > in this area. > > > > -- Bhaskar > > > > On Wed, 2005-11-16 at 08:34 -0600, 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 > > > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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_idv28&alloc_id845&op=click _______________________________________________ Hardhats-members mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/hardhats-members
