# Read remote file

**URL:** <https://rubytalk.org/t/read-remote-file/44778>\
**Category:** ruby-talk\
**Created:** [26 February 2008 12:53 UTC](https://rubytalk.org/t/read-remote-file/44778 "2008-02-26T12:53:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bu\_Mihai](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@Bu\_Mihai](https://rubytalk.org/u/Bu_Mihai)\
**Post date:** [26 February 2008 12:53 UTC](https://rubytalk.org/t/read-remote-file/44778/1 "2008-02-26T12:53:55Z")

</div>

How can i read the file sample.txt in c:\ from the network machine PC1  
The script is running on the PC2 machine.  
I can log on the machine PC1 with user1 and pass1. Can i do it?

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Bu\_Mihai](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@Bu\_Mihai](https://rubytalk.org/u/Bu_Mihai)\
**Post date:** [27 February 2008 07:30 UTC](https://rubytalk.org/t/read-remote-file/44778/2 "2008-02-27T07:30:25Z")

</div>

there is no one to give me a hint?

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
