/[eiffelstudio]/trunk/eweasel/tests/lib010/test.e
ViewVC logotype

Contents of /trunk/eweasel/tests/lib010/test.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 89758 - (show annotations)
Tue Oct 30 15:26:20 2012 UTC (7 years, 2 months ago) by manus
File size: 666 byte(s)
Use `make_with_name' from FILE to not get the obsolete warning when using `make'.
Use `rename_file' instead of `change_name' which is also now obsolete.

1 indexing
2 description : "System's root class"
3
4 class
5 TEST
6
7 create
8 make
9
10 feature -- Initialization
11
12 make is
13 --
14 local
15 l_file: like file
16 do
17 create file.make_with_name (filename)
18 create l_file.make_create_read_write ("dummy.txt")
19 l_file.put_string ("abcdefgh123456789")
20 l_file.flush
21 l_file.close
22 if file.is_closed and l_file.is_closed then
23 file.append (l_file)
24 file.open_read
25 file.read_stream (file.count)
26 io.put_string (file.last_string)
27 file.close
28 l_file.delete
29 end
30 io.put_new_line
31 end
32
33 feature -- Common
34
35 file: PLAIN_TEXT_FILE
36 -- File
37
38 filename: STRING is "file.txt"
39
40
41 end -- class TEST

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.23