# Read remote file

**URL:** <https://www.ruby-forum.com/t/read-remote-file/130218>\
**Category:** Ruby\
**Created:** [February 26, 2008, 1:54pm UTC](https://www.ruby-forum.com/t/read-remote-file/130218 "2008-02-26T13:54:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mihai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/35a633/32.png) [@mihai](https://www.ruby-forum.com/u/mihai)\
**Post date:** [February 26, 2008, 1:54pm UTC](https://www.ruby-forum.com/t/read-remote-file/130218/1 "2008-02-26T13:54:02Z")

</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?

---

<div class="post-metadata">

**Author:** ![mihai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/35a633/32.png) [@mihai](https://www.ruby-forum.com/u/mihai)\
**Post date:** [February 27, 2008, 8:30am UTC](https://www.ruby-forum.com/t/read-remote-file/130218/2 "2008-02-27T08:30:31Z")

</div>

there is no one to give me a hint?
