tests/sav: Update tests results
[nit.git] / tests / sav / test_file_read2.res
1 # This file is part of NIT ( http://www.nitlanguage.org ).
2 #
3 # Copyright 2004-2008 Jean Privat <jean@pryen.org>
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #     http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16
17 var f = new FileReader.open("test_file_read.nit")
18 var s: String
19 while not f.eof do
20     s = f.read_line
21     printn(s)
22     printn("\n")
23 end
24 f.close
25
26 f.reopen
27 printn(f.read(10))
28 printn("|")
29 printn(f.read_all)
30
31 ---
32 # This file is part of NIT ( http://www.nitlanguage.org ).
33 #
34 # Copyright 2004-2008 Jean Privat <jean@pryen.org>
35 #
36 # Licensed under the Apache License, Version 2.0 (the "License");
37 # you may not use this file except in compliance with the License.
38 # You may obtain a copy of the License at
39 #
40 #     http://www.apache.org/licenses/LICENSE-2.0
41 #
42 # Unless required by applicable law or agreed to in writing, software
43 # distributed under the License is distributed on an "AS IS" BASIS,
44 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
45 # See the License for the specific language governing permissions and
46 # limitations under the License.
47
48 var f = new FileReader.open("test_file_read.nit")
49 var s: String
50 while not f.eof do
51     s = f.read_line
52     printn(s)
53     printn("\n")
54 end
55 f.close
56
57 f.reopen
58 printn(f.read(10))
59 printn("|")
60 printn(f.read_all)
61 ---
62 # This file is part of NIT ( http://www.nitlanguage.org ).
63 #
64 # Copyright 2004-2008 Jean Privat <jean@pryen.org>
65 #
66 # Licensed under the Apache License, Version 2.0 (the "License");
67 # you may not use this file except in compliance with the License.
68 # You may obtain a copy of the License at
69 #
70 #     http://www.apache.org/licenses/LICENSE-2.0
71 #
72 # Unless required by applicable law or agreed to in writing, software
73 # distributed under the License is distributed on an "AS IS" BASIS,
74 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
75 # See the License for the specific language governing permissions and
76 # limitations under the License.
77
78 var f = new FileReader.open("test_file_read.nit")
79 var s: String
80 while not f.eof do
81     s = f.read_line
82     printn(s)
83     printn("\n")
84 end
85 f.close
86
87 f.reopen
88 printn(f.read(10))
89 printn("|")
90 printn(f.read_all)
91 ---
92 # This file is part of NIT ( http://www.nitlanguage.org ).
93 #
94 # Copyright 2004-2008 Jean Privat <jean@pryen.org>
95 #
96 # Licensed under the Apache License, Version 2.0 (the "License");
97 # you may not use this file except in compliance with the License.
98 # You may obtain a copy of the License at
99 #
100 #     http://www.apache.org/licenses/LICENSE-2.0
101 #
102 # Unless required by applicable law or agreed to in writing, software
103 # distributed under the License is distributed on an "AS IS" BASIS,
104 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
105 # See the License for the specific language governing permissions and
106 # limitations under the License.
107
108 var f = new FileReader.open("test_file_read.nit")
109 var s: String
110 while not f.eof do
111     s = f.read_line
112     printn(s)
113     printn("\n")
114 end
115 f.close
116
117 f.reopen
118 printn(f.read(10))
119 printn("|")
120 printn(f.read_all)
121
122 ---
123 # This file is part of NIT ( http://www.nitlanguage.org ).
124 #
125 # Copyright 2004-2008 Jean Privat <jean@pryen.org>
126 #
127 # Licensed under the Apache License, Version 2.0 (the "License");
128 # you may not use this file except in compliance with the License.
129 # You may obtain a copy of the License at
130 #
131 #     http://www.apache.org/licenses/LICENSE-2.0
132 #
133 # Unless required by applicable law or agreed to in writing, software
134 # distributed under the License is distributed on an "AS IS" BASIS,
135 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
136 # See the License for the specific language governing permissions and
137 # limitations under the License.
138
139 var f = new FileReader.open("test_file_read.nit")
140 var s: String
141 while not f.eof do
142     s = f.read_line
143     printn(s)
144     printn("\n")
145 end
146 f.close
147
148 f.reopen
149 printn(f.read(10))
150 printn("|")
151 printn(f.read_all)
152 ---
153 # This file is part of NIT ( http://www.nitlanguage.org ).
154 #
155 # Copyright 2004-2008 Jean Privat <jean@pryen.org>
156 #
157 # Licensed under the Apache License, Version 2.0 (the "License");
158 # you may not use this file except in compliance with the License.
159 # You may obtain a copy of the License at
160 #
161 #     http://www.apache.org/licenses/LICENSE-2.0
162 #
163 # Unless required by applicable law or agreed to in writing, software
164 # distributed under the License is distributed on an "AS IS" BASIS,
165 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
166 # See the License for the specific language governing permissions and
167 # limitations under the License.
168
169 var f = new FileReader.open("test_file_read.nit")
170 var s: String
171 while not f.eof do
172     s = f.read_line
173     printn(s)
174     printn("\n")
175 end
176 f.close
177
178 f.reopen
179 printn(f.read(10))
180 printn("|")
181 printn(f.read_all)