source: Include/Classes/System/IO/File.ab@ 97

Last change on this file since 97 was 60, checked in by dai, 18 years ago
File size: 5.7 KB
RevLine 
[59]1
[60]2Enum FileAccess
3 Read
4 ReadWrite
5 Write
6End Enum
7
[59]8Enum FileAttributes
9 Archive
10 Compressed
11 Device
12 Directory
13 Encrypted
14 Hidden
15 Normal
16 NotContentIndexed
17 Offline
18 ReadOnly
19 ReparsePoint
20 SparseFile
21 System
22 Temporary
23End Enum
24
[60]25Enum FileMode
26 Append
27 Create
28 CreateNew
29 Open
30 OpenOrCreate
31 Truncate
32End Enum
33
34Enum FileShare
35 DeleteFile
36 None
37 Read
38 ReadWrite
39 Write
[59]40Class File
41Public
42
43 Static Sub AppendAllText( path As String, contents As String )
44 ' TODO: 実装
45 End Sub
46
47/* Static Sub AppendAllText( path As String, contents As String, encoding As Encoding )
48 ' TODO: 実装
49 End Sub */
50
51 Static Function AppendText( path As String ) As StreamWriter
52 ' TODO: 実装
53 End Function
54
55 Static Sub Copy( sourceFileName As String, destFileName As String )
56 ' TODO: 実装
57 End Sub
58
59 Static Sub Copy( sourceFileName As String, destFileName As String, overwrite As Boolean )
60 ' TODO: 実装
61 End Sub
62
63 Static Function Create( path As String ) As FileStream
64 ' TODO: 実装
65 End Function
66
67 Static Function Create( path As String, bufferSize As Long ) As FileStream
68 ' TODO: 実装
69 End Function
70
71/* Static Function Create( path As String, bufferSize As Long, options As FileOptions ) As FileStream
72 ' TODO: 実装
73 End Function */
74
75/* Static Function Create( path As String, bufferSize As Long, options As FileOptions, fileSecurity As FileSecurity ) As FileStream
76 ' TODO: 実装
77 End Function */
78
79 Static Function CreateText( path As String ) As StreamWriter
80 ' TODO: 実装
81 End Function
82
83 Static Sub Decrypt( path As String )
84 ' TODO: 実装
85 End Sub
86
87 Static Sub DeleteFile( path As String )
88 ' TODO: 実装
89 End Sub
90
91 Static Sub Encrypt( path As String )
92 ' TODO: 実装
93 End Sub
94
95 Static Function Exists( path As String ) As Boolean
96 ' TODO: 実装
97 End Function
98
99/* Static Function GetAccessControl( path As String ) As FileSecurity
100 ' TODO: 実装
101 End Function */
102
103/* Static Function GetAccessControl( path As String, includeSections As AccessControlSections ) As FileSecurity
104 ' TODO: 実装
105 End Function */
106
107 Static Function GetAttributes( path As String ) As FileAttributes
108 ' TODO: 実装
109 End Function
110
111 Static Function GetCreationTime( path As String ) As DateTime
112 ' TODO: 実装
113 End Function
114
115 Static Function GetCreationTimeUtc( path As String ) As DateTime
116 ' TODO: 実装
117 End Function
118
119 Static Function GetLastAccessTime( path As String ) As DateTime
120 ' TODO: 実装
121 End Function
122
123 Static Function GetLastAccessTimeUtc( path As String ) As DateTime
124 ' TODO: 実装
125 End Function
126
127 Static Function GetLastWriteTime( path As String ) As DateTime
128 ' TODO: 実装
129 End Function
130
131 Static Function GetLastWriteTimeUtc( path As String ) As DateTime
132 ' TODO: 実装
133 End Function
134
135 Static Sub Move( sourceFileName As String, destFileName As String )
136 ' TODO: 実装
137 End Sub
[60]138
139 Static Function Open( path As String, mode As FileMode ) As FileStream
140 ' TODO: 実装
141 End Function
142
143 Static Function Open( path As String, mode As FileMode, access As FileAccess ) As FileStream
144 ' TODO: 実装
145 End Function
146
147 Static Function Open( path As String, mode As FileMode, access As FileAccess, share As FileShare ) As FileStream
148 ' TODO: 実装
149 End Function
150
151 Static Function OpenRead( path As String ) As FileStream
152 ' TODO: 実装
153 End Function
154
155 Static Function OpenText( path As String ) As StreamReader
156 ' TODO: 実装
157 End Function
158
159 Static Function OpenWrite( path As String ) As FileStream
160 ' TODO: 実装
161 End Function
162
163 Static Function ReadAllBytes( path As String ) As *Byte
164 ' TODO: 実装
165 End Function
166
167/* Static Function ReadAllLines( path As String ) As Strings
168 ' TODO: 実装
169 End Function */
170
171/* Static Function ReadAllLines( path As String, encoding As Encoding ) As Strings
172 ' TODO: 実装
173 End Function */
174
175 Static Function ReadAllText( path As String ) As String
176 ' TODO: 実装
177 End Function
178
179 Static Function ReadAllText( path As String, encoding As Encoding ) As String
180 ' TODO: 実装
181 End Function
182
183 Static Sub Replace( sourceFileName As String, destinationFileName As String, destinationBackupFileName As String )
184 ' TODO: 実装
185 End Sub
186
187 Static Sub Replace( sourceFileName As String, destinationFileName As String, destinationBackupFileName As String, ignoreMetadataErrors As Boolean )
188 ' TODO: 実装
189 End Sub
190
191 Static Sub SetAccessControl( path As String, fileSecurity As FileSecurity )
192 ' TODO: 実装
193 End Sub
194
195 Static Sub SetAttributes( path As String, fileAttributes As FileAttributes )
196 ' TODO: 実装
197 End Sub
198
199 Static Sub SetCreationTime( path As String, creationTime As DateTime )
200 ' TODO: 実装
201 End Sub
202
203 Static Sub SetCreationTimeUtc( path As String, creationTime As DateTime )
204 ' TODO: 実装
205 End Sub
206
207 Static Sub SetCreationTimeUtc( path As String, creationTimeUtc As DateTime )
208 ' TODO: 実装
209 End Sub
210
211 Static Sub SetLastAccessTime( path As String, lastAccessTime As DateTime )
212 ' TODO: 実装
213 End Sub
214
215 Static Sub SetLastAccessTimeUtc( path As String, lastAccessTimeUtc As DateTime )
216 ' TODO: 実装
217 End Sub
218
219 Static Sub SetLastWriteTime( path As String, lastWriteTime As DateTime )
220 ' TODO: 実装
221 End Sub
222
223 Static Sub SetLastWriteTimeUtc( path As String, lastWriteTimeUtc As DateTime )
224 ' TODO: 実装
225 End Sub
226
227 Static Sub WriteAllBytes( path As String, bytes As *Byte )
228 ' TODO: 実装
229 End Sub
230
231/* Static Sub WriteAllLines( path As String, contents As Strings )
232 ' TODO: 実装
233 End Sub */
234
235/* Static Sub WriteAllLines( path As String, contents As Strings, encoding As Enconding )
236 ' TODO: 実装
237 End Sub */
238
239 Static Sub WriteAllText( path As String, contents As String )
240 ' TODO: 実装
241 End Sub
242
243 Static Sub WriteAllText( path As String, contents As String, encoding As Enconding )
244 ' TODO: 実装
245 End Sub
246
[59]247End Class
Note: See TracBrowser for help on using the repository browser.