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
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.
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
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.