Then don't do that :) Don't put any code in the program that accesses the file system. Simple.
actually i am expecting that code from some one else so i am not sure about that
any ways i can make some changes to the code before compiling.
i use windows xp but i can migrate to ubuntu if u want me to use linux.
>>i use windows xp but i can migrate to ubuntu if u want me to use linux.
why would I care if you use *nix or Windows ?
Since you have the source code then change it to comment out all the file i/o stuff. Start by commenting out #include <fstream> . When you compile you might get a whole bunch of errors. Go through the error messages one at a time and comment out or delete the offending line(s).
That could amount to a huge chore, depending on the program. What are you going to do with the section(s) of the code that depend on the data that is read and/or written to the file system?