# Pwd() cd() and I/O text for open files from pc

**URL:** https://discourse.julialang.org/t/pwd-cd-and-i-o-text-for-open-files-from-pc/63204
**Category:** New to Julia
**Created:** [June 19, 2021, 10:23pm UTC](https://discourse.julialang.org/t/pwd-cd-and-i-o-text-for-open-files-from-pc/63204 "2021-06-19T22:23:33Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Erasmo98](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erasmo98/32/26098_2.png) [@Erasmo98](https://discourse.julialang.org/u/Erasmo98)
#### Post date: [June 19, 2021, 11:53pm UTC](https://discourse.julialang.org/t/pwd-cd-and-i-o-text-for-open-files-from-pc/63204/2 "2021-06-19T23:53:50Z")

</div>

`cd` stands for “change directory”, but you’re passing as argument a path to a file (.jl), not to a directory (cartella).

Restart Julia and try the following:

```julia
julia> pwd()
"C:\\Users\\Amministratore"

julia> cd(".\\Julia")

julia> pwd()
"C:\\Users\\Amministratore\\Julia"

julia> io = open("myfile.jl", "w");

julia> write(io, "Hello world!");

julia> close(io);

julia> io = open("myfile.jl", "r");

julia> read(io, String)
"Hello world!"

```

You can also open the file in a text editor and see for yourself that “Hello world!” was written.

Finally, check out this topic: [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757).

---

_[View the full topic](https://discourse.julialang.org/t/pwd-cd-and-i-o-text-for-open-files-from-pc/63204)._
