Aug 2, 2018

File IO Performance

[Drafted Note]

Original question was to keep one file pointer globally(1) or open/close in each call,(2)

  • Seems (1) is better:
  • Good conversation for (1) but out of the topic
  • Don't open them until you want to write to or read from them. They do NOT need to be open all the time, and in fact, this is a dangerous design flaw.
Additional topics:

  • (yourFile.flush();?)
  • Log4net

No comments:

Post a Comment