101- File content after truncating file to 15 size : string(15) "222222222222222"
102- int(0)
103- bool(false)
104- int(15)
105- -- Testing ftruncate() with file opening using xb mode --
106- -- Testing ftruncate(): truncate to smaller size and display the file content --
107- int(1024)
108- int(0)
109- File content after truncating file to 15 size : string(15) "222222222222222"
110- int(0)
111- bool(false)
112- int(15)
113- -- Testing ftruncate() with file opening using xt mode --
114- -- Testing ftruncate(): truncate to smaller size and display the file content --
115- int(1024)
116- int(0)
117- File content after truncating file to 15 size : string(15) "222222222222222"
118- int(0)
119- bool(false)
120- int(15)
121- -- Testing ftruncate() with file opening using x+ mode --
122- -- Testing ftruncate(): truncate to smaller size and display the file content --
123- int(1024)
124- int(0)
125- File content after truncating file to 15 size : string(15) "222222222222222"
126- int(0)
127- bool(false)
128- int(15)
129- -- Testing ftruncate() with file opening using x+b mode --
130- -- Testing ftruncate(): truncate to smaller size and display the file content --
131- int(1024)
132- int(0)
133- File content after truncating file to 15 size : string(15) "222222222222222"
134- int(0)
135- bool(false)
136- int(15)
137- -- Testing ftruncate() with file opening using x+t mode --
138- -- Testing ftruncate(): truncate to smaller size and display the file content --
139- int(1024)
140- int(0)
141- File content after truncating file to 15 size : string(15) "222222222222222"
142- int(0)
143- bool(false)
144- int(15)
145- -- Testing ftruncate() with file opening using a mode --
146- -- Testing ftruncate(): truncate to smaller size and display the file content --
147- int(1024)
148- int(0)
149- File content after truncating file to 15 size : string(15) "222222222222222"
150- int(0)
151- bool(false)
152- int(15)
153- -- Testing ftruncate() with file opening using ab mode --
154- -- Testing ftruncate(): truncate to smaller size and display the file content --
155- int(1024)
156- int(0)
157- File content after truncating file to 15 size : string(15) "222222222222222"
158- int(0)
159- bool(false)
160- int(15)
161- -- Testing ftruncate() with file opening using at mode --
162- -- Testing ftruncate(): truncate to smaller size and display the file content --
163- int(1024)
164- int(0)
165- File content after truncating file to 15 size : string(15) "222222222222222"
166- int(0)
167- bool(false)
168- int(15)
169- -- Testing ftruncate() with file opening using a+ mode --
170- -- Testing ftruncate(): truncate to smaller size and display the file content --
171- int(1024)
172- int(0)
173- File content after truncating file to 15 size : string(15) "222222222222222"
174- int(0)
175- bool(false)
176- int(15)
177- -- Testing ftruncate() with file opening using a+b mode --
178- -- Testing ftruncate(): truncate to smaller size and display the file content --
179- int(1024)
180- int(0)
181- File content after truncating file to 15 size : string(15) "222222222222222"
182- int(0)
183- bool(false)
184- int(15)
185- -- Testing ftruncate() with file opening using a+t mode --
186- -- Testing ftruncate(): truncate to smaller size and display the file content --
187- int(1024)
188- int(0)
189- File content after truncating file to 15 size : string(15) "222222222222222"
190- int(0)
191- bool(false)
192- int(15)
193-
194- -- Testing ftruncate() with file having data of type text_with_new_line --
195- -- Testing ftruncate() with file opening using r mode --
196- -- Testing ftruncate(): truncate to smaller size and display the file content --
197- int(1024)
198- int(0)
199- int(0)
200- bool(false)
201- int(1024)
202- -- Testing ftruncate() with file opening using rb mode --
203- -- Testing ftruncate(): truncate to smaller size and display the file content --
204- int(1024)
205- int(0)
206- int(0)
207- bool(false)
208- int(1024)
209- -- Testing ftruncate() with file opening using rt mode --
210- -- Testing ftruncate(): truncate to smaller size and display the file content --
211- int(1024)
212- int(0)
213- int(0)
214- bool(false)
215- int(1024)
216- -- Testing ftruncate() with file opening using r+ mode --
217- -- Testing ftruncate(): truncate to smaller size and display the file content --
218- int(1024)
219- int(0)
220- File content after truncating file to 15 size : string(15) "line
221- line of te"
222- int(0)
223- bool(false)
224- int(15)
225- -- Testing ftruncate() with file opening using r+b mode --
226- -- Testing ftruncate(): truncate to smaller size and display the file content --
227- int(1024)
228- int(0)
229- File content after truncating file to 15 size : string(15) "line
230- line of te"
231- int(0)
232- bool(false)
233- int(15)
234- -- Testing ftruncate() with file opening using r+t mode --
235- -- Testing ftruncate(): truncate to smaller size and display the file content --
236- int(1024)
237- int(0)
238- File content after truncating file to 15 size : string(15) "line
239- line of te"
240- int(0)
241- bool(false)
242- int(15)
243- -- Testing ftruncate() with file opening using w mode --
244- -- Testing ftruncate(): truncate to smaller size and display the file content --
245- int(1024)
246- int(0)
247- File content after truncating file to 15 size : string(15) "line
248- line of te"
249- int(0)
250- bool(false)
251- int(15)
252- -- Testing ftruncate() with file opening using wb mode --
253- -- Testing ftruncate(): truncate to smaller size and display the file content --
254- int(1024)
255- int(0)
256- File content after truncating file to 15 size : string(15) "line
257- line of te"
258- int(0)
259- bool(false)
260- int(15)
261- -- Testing ftruncate() with file opening using wt mode --
262- -- Testing ftruncate(): truncate to smaller size and display the file content --
263- int(1024)
264- int(0)
265- File content after truncating file to 15 size : string(15) "line
266- line of te"
267- int(0)
268- bool(false)
269- int(15)
270- -- Testing ftruncate() with file opening using w+ mode --
271- -- Testing ftruncate(): truncate to smaller size and display the file content --
272- int(1024)
273- int(0)
274- File content after truncating file to 15 size : string(15) "line
275- line of te"
276- int(0)
277- bool(false)
278- int(15)
279- -- Testing ftruncate() with file opening using w+b mode --
280- -- Testing ftruncate(): truncate to smaller size and display the file content --
281- int(1024)
282- int(0)
283- File content after truncating file to 15 size : string(15) "line
284- line of te"
285- int(0)
286- bool(false)
287- int(15)
288- -- Testing ftruncate() with file opening using w+t mode --
289- -- Testing ftruncate(): truncate to smaller size and display the file content --
290- int(1024)
291- int(0)
292- File content after truncating file to 15 size : string(15) "line
293- line of te"
294- int(0)
295- bool(false)
296- int(15)
297- -- Testing ftruncate() with file opening using x mode --
298- -- Testing ftruncate(): truncate to smaller size and display the file content --
299- int(1024)
300- int(0)
301- File content after truncating file to 15 size : string(15) "line
302- line of te"
303- int(0)
304- bool(false)
305- int(15)
306- -- Testing ftruncate() with file opening using xb mode --
307- -- Testing ftruncate(): truncate to smaller size and display the file content --
308- int(1024)
309- int(0)
310- File content after truncating file to 15 size : string(15) "line
311- line of te"
312- int(0)
313- bool(false)
314- int(15)
315- -- Testing ftruncate() with file opening using xt mode --
316- -- Testing ftruncate(): truncate to smaller size and display the file content --
317- int(1024)
318- int(0)
319- File content after truncating file to 15 size : string(15) "line
320- line of te"
321- int(0)
322- bool(false)
323- int(15)
324- -- Testing ftruncate() with file opening using x+ mode --
325- -- Testing ftruncate(): truncate to smaller size and display the file content --
326- int(1024)
327- int(0)
328- File content after truncating file to 15 size : string(15) "line
329- line of te"
330- int(0)
331- bool(false)
332- int(15)
333- -- Testing ftruncate() with file opening using x+b mode --
334- -- Testing ftruncate(): truncate to smaller size and display the file content --
335- int(1024)
336- int(0)
337- File content after truncating file to 15 size : string(15) "line
338- line of te"
339- int(0)
340- bool(false)
341- int(15)
342- -- Testing ftruncate() with file opening using x+t mode --
343- -- Testing ftruncate(): truncate to smaller size and display the file content --
344- int(1024)
345- int(0)
346- File content after truncating file to 15 size : string(15) "line
347- line of te"
348- int(0)
349- bool(false)
350- int(15)
351- -- Testing ftruncate() with file opening using a mode --
352- -- Testing ftruncate(): truncate to smaller size and display the file content --
353- int(1024)
354- int(0)
355- File content after truncating file to 15 size : string(15) "line
356- line of te"
357- int(0)
358- bool(false)
359- int(15)
360- -- Testing ftruncate() with file opening using ab mode --
361- -- Testing ftruncate(): truncate to smaller size and display the file content --
362- int(1024)
363- int(0)
364- File content after truncating file to 15 size : string(15) "line
365- line of te"
366- int(0)
367- bool(false)
368- int(15)
369- -- Testing ftruncate() with file opening using at mode --
370- -- Testing ftruncate(): truncate to smaller size and display the file content --
371- int(1024)
372- int(0)
373- File content after truncating file to 15 size : string(15) "line
374- line of te"
375- int(0)
376- bool(false)
377- int(15)
378- -- Testing ftruncate() with file opening using a+ mode --
379- -- Testing ftruncate(): truncate to smaller size and display the file content --
380- int(1024)
381- int(0)
382- File content after truncating file to 15 size : string(15) "line
383- line of te"
384- int(0)
385- bool(false)
386- int(15)
387- -- Testing ftruncate() with file opening using a+b mode --
388- -- Testing ftruncate(): truncate to smaller size and display the file content --
389- int(1024)
390- int(0)
391- File content after truncating file to 15 size : string(15) "line
392- line of te"
393- int(0)
394- bool(false)
395- int(15)
396- -- Testing ftruncate() with file opening using a+t mode --
397- -- Testing ftruncate(): truncate to smaller size and display the file content --
398- int(1024)
399- int(0)
400- File content after truncating file to 15 size : string(15) "line
401- line of te"
402- int(0)
403- bool(false)
404- int(15)
405- Done