Post a reply
Username:
Note:If not registered, provide any username. For more comfort, register here.
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:
Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the %sBoard Administrator%s.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
   

Topic review - Writing on a file
Author Message
  Post subject:  Re: Writing on a file  Reply with quote
That is very dangerous:
if the files are opened with mode ":a", all output goes to the same file
in undefined order, producing gibberish.
If the files are opened in mode ":w", all output but that from the last opener
disappears.
Post Posted: Tue Jan 15, 2019 4:19 pm
  Post subject:  Writing on a file  Reply with quote
I use the potion :a. I have launched some 8 different Singular commands in 8 different shells. I want them to write all in the same file. Is there risk that they write in the same time and the output is gibberish? Or does each of them lock the output file while it writes in it?

Danke schön.
Post Posted: Tue Jan 15, 2019 5:04 am


It is currently Fri May 13, 2022 10:57 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group