Writing to a file

Help
Chris
2010-06-16
2012-12-29
  • Chris

    Chris - 2010-06-16

    Anybody got any comments on which of these two methods of writing a single word to a file is preferable.

    s str="test"
    s cmd="echo "_str_" > afile.txt"
    zsystem cmd

    OR

    s str="test"
    s fnam="afile.txt"
    o fnam(NEWVERSION)
    u fnam
    w str,!
    c fnam

     
  • rnetmans

    rnetmans - 2010-06-16

    Write a loop to do each of those 1000 times.  Your answer will probably be clear.  My bet is that the zsy version will have lots more overhead.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks