I need to write two logs in two separate files: one writes 530 chars 30 times per second, the other one 50 chras 60 times per second. I save the data that will be written in two separate variables and write them every n and m frames separately. To write the variables I use:
using (StreamWriter writer = new StreamWriter(newFileName, true))
and then
writer.Write(data)
Now... I know the pros of using "using", but I was wondering: does it have a overhead? Why not declare a StreamWriter at the beginning of the code and use it when needed?