Solved

Reading a text file in another system

Posted on 2002-06-12
3
225 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Lambda for random numbers problem 7 117
Writing a parser for java language 4 85
c++ reading data from file into two dimensional array 3 117
Beginner to Unreal Engine 4 5 94
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
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 learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

828 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