File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -65,13 +65,45 @@ function readavailable end
65
65
isreadable(io) -> Bool
66
66
67
67
Return `true` if the specified IO object is readable (if that can be determined).
68
+
69
+ # Examples
70
+ ```jldoctest
71
+ julia> open("myfile.txt", "w") do io
72
+ write(io, "Hello world!");
73
+ isreadable(io)
74
+ end
75
+ false
76
+
77
+ julia> open("myfile.txt", "r") do io
78
+ isreadable(io)
79
+ end
80
+ true
81
+
82
+ julia> rm("myfile.txt")
83
+ ```
68
84
"""
69
85
function isreadable end
70
86
71
87
"""
72
88
iswritable(io) -> Bool
73
89
74
90
Return `true` if the specified IO object is writable (if that can be determined).
91
+
92
+ # Examples
93
+ ```jldoctest
94
+ julia> open("myfile.txt", "w") do io
95
+ write(io, "Hello world!");
96
+ iswritable(io)
97
+ end
98
+ true
99
+
100
+ julia> open("myfile.txt", "r") do io
101
+ iswritable(io)
102
+ end
103
+ false
104
+
105
+ julia> rm("myfile.txt")
106
+ ```
75
107
"""
76
108
function iswritable end
77
109
function copy end
You can’t perform that action at this time.
0 commit comments