Skip to main content
96 events
when toggle format what by license comment
Feb 17 at 19:04 comment added de2Zotjes Note that you do not write to something with a filename. You write to a filedescriptor. Which will map to an inode. The directory entry that names that inode could be removed while you have the file open. So you indeed do not need to test on every write if the filename still exists, but you could be writing to a filesystem location that is going to be unreachable after you release the filedescriptor
Feb 15, 2024 at 8:38 comment added Ted Klein Bergman @KaiLando It's not enough. If it exists it might no longer exist after the check is completed.
Feb 14, 2024 at 13:39 comment added Ted Klein Bergman @KaiLando Not realistically. It would require you to check if the file exists every time you read/write to it, and even then there is the edge case that it disappears between the if and the access.
Jan 20, 2024 at 23:59 answer added KaiLando timeline score: 6
Nov 18, 2023 at 17:00 comment added masterxilo Note: your program will not be 100% robust if it cannot handle the case where a file already exists or doesn't exist at the time you actually try to open or create it respectively. The filesystem is concurrently accessible to multiple programs, so the existance-check you did prior to these actions might already be outdated by the time your program acts on it.
Jul 22, 2022 at 16:10 answer added Ban_Midou timeline score: -2
S Dec 20, 2021 at 11:02 history bounty ended Charlie Cook
S Dec 20, 2021 at 11:02 history notice removed Charlie Cook
S Dec 13, 2021 at 9:47 history bounty started Charlie Cook
S Dec 13, 2021 at 9:47 history notice added Charlie Cook Authoritative reference needed
Apr 7, 2021 at 20:26 answer added IsraelW timeline score: 3
Mar 27, 2021 at 19:42 history edited syntagma CC BY-SA 4.0
added 5 characters in body
Jan 23, 2021 at 9:48 answer added Memin timeline score: 102
May 12, 2020 at 14:35 answer added Devbrat Shukla timeline score: 9
May 4, 2020 at 19:28 history edited John Smith CC BY-SA 4.0
added 2 characters in body
Jan 26, 2020 at 23:28 answer added Gopinath timeline score: 11
Nov 28, 2019 at 9:32 history rollback Azat Ibrakov
Rollback to Revision 25
Nov 27, 2019 at 17:10 history edited Anand Tripathi CC BY-SA 4.0
added 2 characters in body; edited title
Nov 12, 2019 at 15:21 review Suggested edits
Nov 12, 2019 at 16:12
Jan 28, 2019 at 9:31 review Suggested edits
Jan 28, 2019 at 11:12
S Nov 5, 2018 at 17:50 history suggested Picachieu CC BY-SA 4.0
added details in title
Nov 5, 2018 at 15:25 review Suggested edits
S Nov 5, 2018 at 17:50
Oct 31, 2018 at 13:22 answer added Vimal Maheedharan timeline score: 4
Oct 17, 2018 at 13:35 history edited martineau
edited tags
Oct 17, 2018 at 13:30 history edited martineau CC BY-SA 4.0
Edited question title and removed language tag.
Oct 13, 2018 at 14:41 history edited Peter Mortensen CC BY-SA 4.0
Active reading [<http://en.wikipedia.org/wiki/Python_%28programming_language%29>].
Oct 2, 2018 at 0:34 history edited Jason CC BY-SA 4.0
disambiguate title
Jun 12, 2018 at 9:09 review Suggested edits
Jun 12, 2018 at 9:27
Jun 2, 2018 at 20:51 history edited Peter Mortensen CC BY-SA 4.0
Active reading.
Apr 25, 2018 at 9:19 review Suggested edits
Apr 25, 2018 at 11:02
Apr 10, 2018 at 8:14 review Suggested edits
Apr 10, 2018 at 8:38
Mar 4, 2018 at 6:24 answer added Ali Hallaji timeline score: 23
Feb 19, 2018 at 19:23 history edited codeforester
edited tags
Feb 14, 2018 at 1:08 history edited Nae CC BY-SA 3.0
replaced some words with synonims for better search results
Feb 13, 2018 at 21:18 history edited martineau CC BY-SA 3.0
Edited title to better express question being asked and removed language tag from it.
Dec 30, 2017 at 16:41 review Suggested edits
Dec 30, 2017 at 18:07
Dec 4, 2017 at 8:51 answer added Wizard timeline score: 56
Aug 10, 2017 at 5:50 answer added durjoy timeline score: 22
Jun 20, 2017 at 19:28 answer added CristiFati timeline score: 315
Dec 2, 2016 at 6:39 answer added Taufiq Rahman timeline score: 15
Oct 8, 2016 at 12:43 answer added Tom Fuller timeline score: 103
Oct 1, 2016 at 23:25 history edited Honest Abe CC BY-SA 3.0
improved terminology and added a link for clarity
Sep 13, 2016 at 11:53 review Close votes
Sep 17, 2016 at 0:05
Aug 5, 2016 at 15:54 answer added Marcel Wilson timeline score: 17
Jun 8, 2016 at 12:45 answer added iPhynx timeline score: 4
May 5, 2016 at 12:00 answer added Mike McKerns timeline score: 19
Apr 14, 2016 at 10:32 history edited Termininja CC BY-SA 3.0
edited title
Feb 24, 2016 at 12:44 answer added KaiBuxe timeline score: 85
Feb 9, 2016 at 17:40 history edited Braiam
having the try-catch here means that try-catch is a solution needed, well, OP said "without"
Jan 26, 2016 at 19:35 history edited the Tin Man CC BY-SA 3.0
deleted 4 characters in body; edited title
S Dec 22, 2015 at 7:37 history suggested Randika Vishman CC BY-SA 3.0
Improved clarity of the question. And organized using tags.
Dec 22, 2015 at 7:00 review Suggested edits
S Dec 22, 2015 at 7:37
Dec 7, 2015 at 9:09 review Close votes
Dec 11, 2015 at 0:06
Sep 22, 2015 at 18:39 review Suggested edits
Sep 22, 2015 at 19:10
Sep 10, 2015 at 8:28 review Suggested edits
Sep 10, 2015 at 9:30
Aug 29, 2015 at 16:15 answer added Love and peace - Joe Codeswell timeline score: 19
Aug 11, 2015 at 3:54 answer added Aaron Hall timeline score: 145
Aug 5, 2015 at 6:28 answer added Khaled.K timeline score: 10
May 25, 2015 at 18:29 answer added incalite timeline score: 114
S May 22, 2015 at 23:16 history suggested Ninjakannon CC BY-SA 3.0
Improved grammar
May 22, 2015 at 22:50 review Suggested edits
S May 22, 2015 at 23:16
May 13, 2015 at 15:51 history edited SpoonMeiser CC BY-SA 3.0
fix formatting - try is code, statement describes try
May 12, 2015 at 21:47 review Close votes
May 16, 2015 at 0:01
Apr 28, 2015 at 2:45 answer added Pedro Lobito timeline score: 27
Apr 17, 2015 at 19:10 history edited Kasravnd CC BY-SA 3.0
edited body
Dec 26, 2014 at 20:05 answer added Zizouz212 timeline score: 54
Dec 20, 2014 at 15:21 answer added Pradip Das timeline score: 13
Dec 15, 2014 at 2:04 history edited Honest Abe CC BY-SA 3.0
removed the question mark, because the title is not a question now
Oct 31, 2014 at 13:07 history edited user3094403 CC BY-SA 3.0
Improved title: http://meta.stackexchange.com/questions/10647/how-do-i-write-a-good-title
Oct 17, 2014 at 21:25 answer added Hanson timeline score: 6
Oct 13, 2014 at 7:45 answer added bergercookie timeline score: 45
May 23, 2014 at 10:01 answer added Zaheer timeline score: 3
Feb 10, 2014 at 21:30 answer added Chris timeline score: 20
Feb 8, 2014 at 2:38 answer added Cody Piersall timeline score: 221
Sep 25, 2013 at 1:52 answer added chad timeline score: 80
Jun 27, 2013 at 13:38 answer added Avid Coder timeline score: 175
Jun 10, 2013 at 5:13 history protected Mayank K. Swami
Feb 19, 2013 at 10:14 history edited Nicolas CC BY-SA 3.0
added 2 characters in body
Sep 25, 2012 at 13:18 history edited moooeeeep
edited tags
Jan 16, 2012 at 5:57 answer added Yugal Jindle timeline score: 433
Aug 26, 2011 at 8:08 answer added Jesvin Jose timeline score: 7
Jan 25, 2011 at 23:00 answer added philops timeline score: 68
Jan 18, 2011 at 10:20 vote accept spence91
Jan 18, 2011 at 10:20 vote accept spence91
Jan 18, 2011 at 10:20
Dec 14, 2009 at 20:08 history edited Peter Mortensen CC BY-SA 2.5
Jeopardy compliance.
Dec 14, 2009 at 19:24 history edited Peter Mortensen CC BY-SA 2.5
Minor edit: grammar/spelling/case/punctation/etc.
Nov 4, 2009 at 0:48 answer added pkoch timeline score: 145
Sep 17, 2008 at 15:01 answer added bortzmeyer timeline score: 1243
Sep 17, 2008 at 13:14 vote accept spence91
Jan 18, 2011 at 10:19
Sep 17, 2008 at 13:13 answer added zgoda timeline score: 41
Sep 17, 2008 at 12:57 history edited Mark Biek CC BY-SA 2.5
edited title
Sep 17, 2008 at 12:57 answer added rslite timeline score: 6770
Sep 17, 2008 at 12:57 answer added PierreBdR timeline score: 2678
Sep 17, 2008 at 12:56 answer added benefactual timeline score: 367
Sep 17, 2008 at 12:55 answer added Paul timeline score: 894
Sep 17, 2008 at 12:55 history asked spence91 CC BY-SA 2.5