File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -102,24 +102,25 @@ characters.
102
102
103
103
= head2 method seek
104
104
105
- method seek(IO::Handle:D: Int:D $offset, Int :D $whence)
105
+ method seek(IO::Handle:D: Int:D $offset, SeekType :D $whence --> True )
106
106
107
107
Move the file pointer (that is the position at which any subsequent read
108
108
or write operations will begin,) to the byte position specified by
109
109
C < $offset > relative to the location specified by C < $whence > which may be
110
110
one of:
111
111
112
- = item 0
112
+ = item SeekFromBeginning
113
113
114
114
The beginning of the file.
115
115
116
- = item 1
116
+ = item SeekFromCurrent
117
117
118
118
The current position in the file.
119
119
120
- = item 2
120
+ = item SeekFromEnd
121
121
122
- The end of the file.
122
+ The end of the file. Please note that you need to specify a negative
123
+ offset if you want to position before the end of the file.
123
124
124
125
= head2 method tell
125
126
You can’t perform that action at this time.
0 commit comments