Can any one help me how to read a file from different machine on a network.
I have only IP address of other machine as input.the machine which is required to connect may have WindowXP or Linux installed as OS. At a time only machine will be connected whose IP address will be passed.And the machine which will read the file having WindowXP as OS.
This isn't a C++ question, so you'll have to lookup the details elsewhere.
You can use UNC names with standard Windows software. The Linux box would need provide the Microsoft network file protocol, SMB, by running Samba and a configuration that grants access to the files in question.