JanetDocsPlaygroundI'm feeling luckyGitHub sign in

os/readlink



    cfunction
    src/core/os.c on line 1596, column 1

    (os/readlink path)

    Read the contents of a symbolic link. Does not work on Windows.


1 exampleSign in to add an example
Loading...
(os/shell "uptime > /tmp/uptime.txt")  # => 0
(slurp "/tmp/uptime.txt")
# => @"22:33  up 5 days,  9:34, 15 users, load averages: 1.93 1.74 1.59\n"
(os/rm "/tmp/uptime.txt")  # => nil
cellularmitosisPlayground