problem when include code in Julia

116 views
Skip to first unread message

Monica Deng

unread,
Nov 17, 2016, 5:55:14 AM11/17/16
to julia-users
I kept meeting this problem when try to include codes in Julia:












I'm pretty sure the file has been saved in the right position and as plain text file. And my laptop is mac. 
I'd appreciate for your help.
Thanks. :)

Mauro

unread,
Nov 17, 2016, 6:02:49 AM11/17/16
to julia...@googlegroups.com
After your cd(...) command run:

julia> readdir()

It will give a list of files in the directory. Check that your file is
there. If not then that is rather strange.

On Thu, 2016-11-17 at 11:50, Monica Deng <xinchen...@gmail.com> wrote:
> I kept meeting this problem when try to include codes in Julia:
>
> <https://lh3.googleusercontent.com/-B-3FrL-sF_Q/WC2K1xPcNBI/AAAAAAAAACM/ZOsKD40NktUG_DboHXpy6L4vfYn_7cycgCLcB/s1600/%25E5%25B1%258F%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7%2B2016-11-17%2B11.47.31.png>

Monica Deng

unread,
Nov 17, 2016, 10:37:06 PM11/17/16
to julia-users
Thanks a lot.
after doing "readdir()", I found that I must add ".txt" to the file. but that's not normal right? As I can see, the textbook just do with extension ".jl"
but the problem is solved after all.



在 2016年11月17日星期四 UTC+1下午12:02:49,Mauro写道:

David P. Sanders

unread,
Nov 17, 2016, 11:02:34 PM11/17/16
to julia-users
How did you save the .jl file?
It seems your editor added the extra
.txt suffix. You might want to try a different editor that is designed for editing code, e.g. Atom.
Reply all
Reply to author
Forward
0 new messages