Works for either input or output purpose.
I used ifstream since learner guy wanted the file to be cleared at startup.
This can pretend writing something in the file, before you actually use it.
Of course it's pointless truncating a file when you actually want to see whats inside.
But in case he only wants to empty it(without seeing in the file or writing in it), then it doesn't really matter which one you use.
I Developed application in C# with crystal reports and created setup file in third party (Advance) Installer.When i installed my application on client system application is working but ...