Solved

Reading a text file in another system

Posted on 2002-06-12
3
198 Views
Last Modified: 2010-04-02
Hi,

I have two PC's - A, B - in same network.From the system A,I need to read a textfile stored in the C:\ drive of the system B  using  a C++ program .I have only the IP address of the system B available in the system A.

Any solution?

Thanks
Shaji_am
0
Comment
Question by:shaji_am
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 50 total points
ID: 7075299
If the c: drive is shared, use an UNC path with the IP address:

char* pszPath = "\\\\123.456.789.1\\share\\path\\file.txt";
0
 
LVL 11

Expert Comment

by:griessh
ID: 7262275
Dear shaij_am

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "jkr"

comment(s) as an answer.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 7332934
Force accepted

** Mindphaser - Community Support Moderator **
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now