Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 ocnprint 

Last post Thu, Feb 19 2009 12:17 AM by leongec. 2 replies.
Started by leongec 18 Feb 2009 03:41 AM. Topic has 2 replies and 1427 views
Page 1 of 1 (3 items)
Sort Posts:
  • Wed, Feb 18 2009 3:41 AM

    • leongec
    • Top 500 Contributor
    • Joined on Sun, Feb 1 2009
    • Posts 20
    • Points 265
    ocnprint Reply

     hi all , i have one question regarding to the ocnprint. the following is my script


    f1=1
    f2=2
    f3=3

    q1=4

    q2=5

    q3=6


    ocnPrint(?output "/home/result.txt"  f1,q1)
    ocnPrint(?output "/home/result.txt"  f2,q2)
    ocnPrint(?output "/home/result.txt"  f3,q3)

    i would like to print the f2 and q2 in the next line of f1 and q1, but i realize that the latest print will replace the older one, how can i use the "append" command to fix my problem??

     

    thank you for your advice:)

    • Post Points: 20
  • Wed, Feb 18 2009 5:46 AM

    • Bernd
    • Top 500 Contributor
    • Joined on Tue, Jul 15 2008
    • Unterhaching, Bavaria
    • Posts 26
    • Points 945
    Re: ocnprint Reply

    p_port = outfile( t_fileName "a" )
    ocnPrint( ?output p_port ... ) ;; fisrt ocnPrint
    ocnPrint( ?output p_port ... ) ;; second ocnPrint
    ...
    close( p_port )
     

    Just another lonesome cad guy
    • Post Points: 20
  • Thu, Feb 19 2009 12:17 AM

    • leongec
    • Top 500 Contributor
    • Joined on Sun, Feb 1 2009
    • Posts 20
    • Points 265
    Re: ocnprint Reply

     hi Bernd, thanks for your help! 

    I can make it now ^_^

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by leongec at 18 Feb 2009 03:41 AM. Topic has 2 replies.