C# 클래스 System.IO.File

파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

공개 메소드들

메소드 설명
AppendAllLines ( String path, IEnumerable contents ) : void
AppendAllLines ( String path, IEnumerable contents, Encoding encoding ) : void
AppendAllLines ( string path, System contents ) : void
AppendAllLines ( string path, System contents, System encoding ) : void
AppendAllText ( String path, String contents ) : void
AppendAllText ( String path, String contents, Encoding encoding ) : void
AppendAllText ( string path, string contents ) : void
AppendAllText ( string path, string contents, System encoding ) : void
AppendText ( String path ) : StreamWriter
AppendText ( string path ) : System.IO.StreamWriter
Copy ( String sourceFileName, String destFileName ) : void
Copy ( String sourceFileName, String destFileName, bool overwrite ) : void
Copy ( string sourceFileName, string destFileName ) : void
Copy ( string sourceFileName, string destFileName, bool overwrite ) : void
Create ( String path, int bufferSize ) : FileStream
Create ( String path, int bufferSize, FileOptions options ) : FileStream
Create ( string path ) : FileStream
Create ( string path ) : System.IO.FileStream
Create ( string path, int bufferSize ) : System.IO.FileStream
Create ( string path, int bufferSize, System options ) : System.IO.FileStream
CreateText ( String path ) : StreamWriter
CreateText ( string path ) : System.IO.StreamWriter
Decrypt ( String path ) : void
Decrypt ( string path ) : void
Delete ( string path ) : void
Encrypt ( String path ) : void
Encrypt ( string path ) : void
Exists ( string path ) : bool
GetAttributes ( string path ) : System.IO.FileAttributes
GetCreationTime ( string path ) : System.DateTime
GetCreationTimeUtc ( string path ) : System.DateTime
GetLastAccessTime ( string path ) : System.DateTime
GetLastAccessTimeUtc ( string path ) : System.DateTime
GetLastWriteTime ( string path ) : System.DateTime
GetLastWriteTimeUtc ( string path ) : System.DateTime
Move ( string sourceFileName, string destFileName ) : void
Open ( String path, FileMode mode ) : FileStream
Open ( String path, FileMode mode, FileAccess access ) : FileStream
Open ( String path, FileMode mode, FileAccess access, FileShare share ) : FileStream
Open ( string path, System mode ) : System.IO.FileStream
Open ( string path, System mode, System access ) : System.IO.FileStream
Open ( string path, System mode, System access, System share ) : System.IO.FileStream
OpenRead ( string path ) : System.IO.FileStream
OpenText ( String path ) : StreamReader
OpenText ( string path ) : System.IO.StreamReader
OpenWrite ( String path ) : FileStream
OpenWrite ( string path ) : System.IO.FileStream
ReadAllBytes ( string path ) : byte[]
ReadAllLines ( String path ) : String[]
ReadAllLines ( String path, Encoding encoding ) : String[]
ReadAllLines ( string path ) : string[]
ReadAllLines ( string path, System encoding ) : string[]
ReadAllText ( string path ) : string
ReadAllText ( string path, System encoding ) : string
ReadLines ( String path ) : IEnumerable
ReadLines ( String path, Encoding encoding ) : IEnumerable
ReadLines ( string path ) : System.Collections.Generic.IEnumerable
ReadLines ( string path, System encoding ) : System.Collections.Generic.IEnumerable
Replace ( String sourceFileName, String destinationFileName, String destinationBackupFileName ) : void
Replace ( String sourceFileName, String destinationFileName, String destinationBackupFileName, bool ignoreMetadataErrors ) : void
Replace ( string sourceFileName, string destinationFileName, string destinationBackupFileName ) : void
Replace ( string sourceFileName, string destinationFileName, string destinationBackupFileName, bool ignoreMetadataErrors ) : void
SetAttributes ( string path, System fileAttributes ) : void
SetCreationTime ( String path, DateTime creationTime ) : void
SetCreationTime ( string path, System creationTime ) : void
SetCreationTimeUtc ( String path, DateTime creationTimeUtc ) : void
SetCreationTimeUtc ( string path, System creationTimeUtc ) : void
SetLastAccessTime ( String path, DateTime lastAccessTime ) : void
SetLastAccessTime ( string path, System lastAccessTime ) : void
SetLastAccessTimeUtc ( String path, DateTime lastAccessTimeUtc ) : void
SetLastAccessTimeUtc ( string path, System lastAccessTimeUtc ) : void
SetLastWriteTime ( String path, DateTime lastWriteTime ) : void
SetLastWriteTime ( string path, System lastWriteTime ) : void
SetLastWriteTimeUtc ( String path, DateTime lastWriteTimeUtc ) : void
SetLastWriteTimeUtc ( string path, System lastWriteTimeUtc ) : void
WriteAllBytes ( string path, byte bytes ) : void
WriteAllLines ( String path, IEnumerable contents ) : void
WriteAllLines ( String path, IEnumerable contents, Encoding encoding ) : void
WriteAllLines ( String path, String contents ) : void
WriteAllLines ( String path, String contents, Encoding encoding ) : void
WriteAllLines ( string path, System contents ) : void
WriteAllLines ( string path, System contents, System encoding ) : void
WriteAllLines ( string path, string contents ) : void
WriteAllLines ( string path, string contents, System encoding ) : void
WriteAllText ( string path, string contents ) : void
WriteAllText ( string path, string contents, System encoding ) : void

비공개 메소드들

메소드 설명
Delete ( String path ) : void
Exists ( String path ) : bool
GetAttributes ( String path ) : FileAttributes
GetCreationTime ( String path ) : DateTime
GetCreationTimeUtc ( String path ) : DateTime
GetLastAccessTime ( String path ) : DateTime
GetLastAccessTimeUtc ( String path ) : DateTime
GetLastWriteTime ( String path ) : DateTime
GetLastWriteTimeUtc ( String path ) : DateTime
GetUtcDateTimeOffset ( DateTime dateTime ) : DateTimeOffset
InternalCopy ( String sourceFileName, String destFileName, bool overwrite ) : String
InternalExists ( String path ) : bool
InternalReadAllBytes ( String path ) : byte[]
InternalReadAllLines ( String path, Encoding encoding ) : String[]
InternalReadAllText ( String path, Encoding encoding ) : String
InternalWriteAllBytes ( String path, byte bytes ) : void
InternalWriteAllLines ( TextWriter writer, IEnumerable contents ) : void
Move ( String sourceFileName, String destFileName ) : void
OpenRead ( String path ) : FileStream
ReadAllBytes ( String path ) : byte[]
ReadAllText ( String path ) : String
ReadAllText ( String path, Encoding encoding ) : String
SetAttributes ( String path, FileAttributes fileAttributes ) : void
WriteAllBytes ( String path, byte bytes ) : void
WriteAllText ( String path, String contents ) : void
WriteAllText ( String path, String contents, Encoding encoding ) : void

메소드 상세

AppendAllLines() 공개 정적인 메소드

public static AppendAllLines ( String path, IEnumerable contents ) : void
path String
contents IEnumerable
리턴 void

AppendAllLines() 공개 정적인 메소드

public static AppendAllLines ( String path, IEnumerable contents, Encoding encoding ) : void
path String
contents IEnumerable
encoding System.Text.Encoding
리턴 void

AppendAllLines() 공개 정적인 메소드

public static AppendAllLines ( string path, System contents ) : void
path string
contents System
리턴 void

AppendAllLines() 공개 정적인 메소드

public static AppendAllLines ( string path, System contents, System encoding ) : void
path string
contents System
encoding System
리턴 void

AppendAllText() 공개 정적인 메소드

public static AppendAllText ( String path, String contents ) : void
path String
contents String
리턴 void

AppendAllText() 공개 정적인 메소드

public static AppendAllText ( String path, String contents, Encoding encoding ) : void
path String
contents String
encoding System.Text.Encoding
리턴 void

AppendAllText() 공개 정적인 메소드

public static AppendAllText ( string path, string contents ) : void
path string
contents string
리턴 void

AppendAllText() 공개 정적인 메소드

public static AppendAllText ( string path, string contents, System encoding ) : void
path string
contents string
encoding System
리턴 void

AppendText() 공개 정적인 메소드

public static AppendText ( String path ) : StreamWriter
path String
리턴 StreamWriter

AppendText() 공개 정적인 메소드

public static AppendText ( string path ) : System.IO.StreamWriter
path string
리턴 System.IO.StreamWriter

Copy() 공개 정적인 메소드

public static Copy ( String sourceFileName, String destFileName ) : void
sourceFileName String
destFileName String
리턴 void

Copy() 공개 정적인 메소드

public static Copy ( String sourceFileName, String destFileName, bool overwrite ) : void
sourceFileName String
destFileName String
overwrite bool
리턴 void

Copy() 공개 정적인 메소드

public static Copy ( string sourceFileName, string destFileName ) : void
sourceFileName string
destFileName string
리턴 void

Copy() 공개 정적인 메소드

public static Copy ( string sourceFileName, string destFileName, bool overwrite ) : void
sourceFileName string
destFileName string
overwrite bool
리턴 void

Create() 공개 정적인 메소드

public static Create ( String path, int bufferSize ) : FileStream
path String
bufferSize int
리턴 FileStream

Create() 공개 정적인 메소드

public static Create ( String path, int bufferSize, FileOptions options ) : FileStream
path String
bufferSize int
options FileOptions
리턴 FileStream

Create() 공개 정적인 메소드

public static Create ( string path ) : FileStream
path string
리턴 FileStream

Create() 공개 정적인 메소드

public static Create ( string path ) : System.IO.FileStream
path string
리턴 System.IO.FileStream

Create() 공개 정적인 메소드

public static Create ( string path, int bufferSize ) : System.IO.FileStream
path string
bufferSize int
리턴 System.IO.FileStream

Create() 공개 정적인 메소드

public static Create ( string path, int bufferSize, System options ) : System.IO.FileStream
path string
bufferSize int
options System
리턴 System.IO.FileStream

CreateText() 공개 정적인 메소드

public static CreateText ( String path ) : StreamWriter
path String
리턴 StreamWriter

CreateText() 공개 정적인 메소드

public static CreateText ( string path ) : System.IO.StreamWriter
path string
리턴 System.IO.StreamWriter

Decrypt() 공개 정적인 메소드

public static Decrypt ( String path ) : void
path String
리턴 void

Decrypt() 공개 정적인 메소드

public static Decrypt ( string path ) : void
path string
리턴 void

Delete() 공개 정적인 메소드

public static Delete ( string path ) : void
path string
리턴 void

Encrypt() 공개 정적인 메소드

public static Encrypt ( String path ) : void
path String
리턴 void

Encrypt() 공개 정적인 메소드

public static Encrypt ( string path ) : void
path string
리턴 void

Exists() 공개 정적인 메소드

public static Exists ( string path ) : bool
path string
리턴 bool

GetAttributes() 공개 정적인 메소드

public static GetAttributes ( string path ) : System.IO.FileAttributes
path string
리턴 System.IO.FileAttributes

GetCreationTime() 공개 정적인 메소드

public static GetCreationTime ( string path ) : System.DateTime
path string
리턴 System.DateTime

GetCreationTimeUtc() 공개 정적인 메소드

public static GetCreationTimeUtc ( string path ) : System.DateTime
path string
리턴 System.DateTime

GetLastAccessTime() 공개 정적인 메소드

public static GetLastAccessTime ( string path ) : System.DateTime
path string
리턴 System.DateTime

GetLastAccessTimeUtc() 공개 정적인 메소드

public static GetLastAccessTimeUtc ( string path ) : System.DateTime
path string
리턴 System.DateTime

GetLastWriteTime() 공개 정적인 메소드

public static GetLastWriteTime ( string path ) : System.DateTime
path string
리턴 System.DateTime

GetLastWriteTimeUtc() 공개 정적인 메소드

public static GetLastWriteTimeUtc ( string path ) : System.DateTime
path string
리턴 System.DateTime

Move() 공개 정적인 메소드

public static Move ( string sourceFileName, string destFileName ) : void
sourceFileName string
destFileName string
리턴 void

Open() 공개 정적인 메소드

public static Open ( String path, FileMode mode ) : FileStream
path String
mode FileMode
리턴 FileStream

Open() 공개 정적인 메소드

public static Open ( String path, FileMode mode, FileAccess access ) : FileStream
path String
mode FileMode
access FileAccess
리턴 FileStream

Open() 공개 정적인 메소드

public static Open ( String path, FileMode mode, FileAccess access, FileShare share ) : FileStream
path String
mode FileMode
access FileAccess
share FileShare
리턴 FileStream

Open() 공개 정적인 메소드

public static Open ( string path, System mode ) : System.IO.FileStream
path string
mode System
리턴 System.IO.FileStream

Open() 공개 정적인 메소드

public static Open ( string path, System mode, System access ) : System.IO.FileStream
path string
mode System
access System
리턴 System.IO.FileStream

Open() 공개 정적인 메소드

public static Open ( string path, System mode, System access, System share ) : System.IO.FileStream
path string
mode System
access System
share System
리턴 System.IO.FileStream

OpenRead() 공개 정적인 메소드

public static OpenRead ( string path ) : System.IO.FileStream
path string
리턴 System.IO.FileStream

OpenText() 공개 정적인 메소드

public static OpenText ( String path ) : StreamReader
path String
리턴 StreamReader

OpenText() 공개 정적인 메소드

public static OpenText ( string path ) : System.IO.StreamReader
path string
리턴 System.IO.StreamReader

OpenWrite() 공개 정적인 메소드

public static OpenWrite ( String path ) : FileStream
path String
리턴 FileStream

OpenWrite() 공개 정적인 메소드

public static OpenWrite ( string path ) : System.IO.FileStream
path string
리턴 System.IO.FileStream

ReadAllBytes() 공개 정적인 메소드

public static ReadAllBytes ( string path ) : byte[]
path string
리턴 byte[]

ReadAllLines() 공개 정적인 메소드

public static ReadAllLines ( String path ) : String[]
path String
리턴 String[]

ReadAllLines() 공개 정적인 메소드

public static ReadAllLines ( String path, Encoding encoding ) : String[]
path String
encoding Encoding
리턴 String[]

ReadAllLines() 공개 정적인 메소드

public static ReadAllLines ( string path ) : string[]
path string
리턴 string[]

ReadAllLines() 공개 정적인 메소드

public static ReadAllLines ( string path, System encoding ) : string[]
path string
encoding System
리턴 string[]

ReadAllText() 공개 정적인 메소드

public static ReadAllText ( string path ) : string
path string
리턴 string

ReadAllText() 공개 정적인 메소드

public static ReadAllText ( string path, System encoding ) : string
path string
encoding System
리턴 string

ReadLines() 공개 정적인 메소드

public static ReadLines ( String path ) : IEnumerable
path String
리턴 IEnumerable

ReadLines() 공개 정적인 메소드

public static ReadLines ( String path, Encoding encoding ) : IEnumerable
path String
encoding Encoding
리턴 IEnumerable

ReadLines() 공개 정적인 메소드

public static ReadLines ( string path ) : System.Collections.Generic.IEnumerable
path string
리턴 System.Collections.Generic.IEnumerable

ReadLines() 공개 정적인 메소드

public static ReadLines ( string path, System encoding ) : System.Collections.Generic.IEnumerable
path string
encoding System
리턴 System.Collections.Generic.IEnumerable

Replace() 공개 정적인 메소드

public static Replace ( String sourceFileName, String destinationFileName, String destinationBackupFileName ) : void
sourceFileName String
destinationFileName String
destinationBackupFileName String
리턴 void

Replace() 공개 정적인 메소드

public static Replace ( String sourceFileName, String destinationFileName, String destinationBackupFileName, bool ignoreMetadataErrors ) : void
sourceFileName String
destinationFileName String
destinationBackupFileName String
ignoreMetadataErrors bool
리턴 void

Replace() 공개 정적인 메소드

public static Replace ( string sourceFileName, string destinationFileName, string destinationBackupFileName ) : void
sourceFileName string
destinationFileName string
destinationBackupFileName string
리턴 void

Replace() 공개 정적인 메소드

public static Replace ( string sourceFileName, string destinationFileName, string destinationBackupFileName, bool ignoreMetadataErrors ) : void
sourceFileName string
destinationFileName string
destinationBackupFileName string
ignoreMetadataErrors bool
리턴 void

SetAttributes() 공개 정적인 메소드

public static SetAttributes ( string path, System fileAttributes ) : void
path string
fileAttributes System
리턴 void

SetCreationTime() 공개 정적인 메소드

public static SetCreationTime ( String path, DateTime creationTime ) : void
path String
creationTime DateTime
리턴 void

SetCreationTime() 공개 정적인 메소드

public static SetCreationTime ( string path, System creationTime ) : void
path string
creationTime System
리턴 void

SetCreationTimeUtc() 공개 정적인 메소드

public static SetCreationTimeUtc ( String path, DateTime creationTimeUtc ) : void
path String
creationTimeUtc DateTime
리턴 void

SetCreationTimeUtc() 공개 정적인 메소드

public static SetCreationTimeUtc ( string path, System creationTimeUtc ) : void
path string
creationTimeUtc System
리턴 void

SetLastAccessTime() 공개 정적인 메소드

public static SetLastAccessTime ( String path, DateTime lastAccessTime ) : void
path String
lastAccessTime DateTime
리턴 void

SetLastAccessTime() 공개 정적인 메소드

public static SetLastAccessTime ( string path, System lastAccessTime ) : void
path string
lastAccessTime System
리턴 void

SetLastAccessTimeUtc() 공개 정적인 메소드

public static SetLastAccessTimeUtc ( String path, DateTime lastAccessTimeUtc ) : void
path String
lastAccessTimeUtc DateTime
리턴 void

SetLastAccessTimeUtc() 공개 정적인 메소드

public static SetLastAccessTimeUtc ( string path, System lastAccessTimeUtc ) : void
path string
lastAccessTimeUtc System
리턴 void

SetLastWriteTime() 공개 정적인 메소드

public static SetLastWriteTime ( String path, DateTime lastWriteTime ) : void
path String
lastWriteTime DateTime
리턴 void

SetLastWriteTime() 공개 정적인 메소드

public static SetLastWriteTime ( string path, System lastWriteTime ) : void
path string
lastWriteTime System
리턴 void

SetLastWriteTimeUtc() 공개 정적인 메소드

public static SetLastWriteTimeUtc ( String path, DateTime lastWriteTimeUtc ) : void
path String
lastWriteTimeUtc DateTime
리턴 void

SetLastWriteTimeUtc() 공개 정적인 메소드

public static SetLastWriteTimeUtc ( string path, System lastWriteTimeUtc ) : void
path string
lastWriteTimeUtc System
리턴 void

WriteAllBytes() 공개 정적인 메소드

public static WriteAllBytes ( string path, byte bytes ) : void
path string
bytes byte
리턴 void

WriteAllLines() 공개 정적인 메소드

public static WriteAllLines ( String path, IEnumerable contents ) : void
path String
contents IEnumerable
리턴 void

WriteAllLines() 공개 정적인 메소드

public static WriteAllLines ( String path, IEnumerable contents, Encoding encoding ) : void
path String
contents IEnumerable
encoding Encoding
리턴 void

WriteAllLines() 공개 정적인 메소드

public static WriteAllLines ( String path, String contents ) : void
path String
contents String
리턴 void

WriteAllLines() 공개 정적인 메소드

public static WriteAllLines ( String path, String contents, Encoding encoding ) : void
path String
contents String
encoding Encoding
리턴 void

WriteAllLines() 공개 정적인 메소드

public static WriteAllLines ( string path, System contents ) : void
path string
contents System
리턴 void

WriteAllLines() 공개 정적인 메소드

public static WriteAllLines ( string path, System contents, System encoding ) : void
path string
contents System
encoding System
리턴 void

WriteAllLines() 공개 정적인 메소드

public static WriteAllLines ( string path, string contents ) : void
path string
contents string
리턴 void

WriteAllLines() 공개 정적인 메소드

public static WriteAllLines ( string path, string contents, System encoding ) : void
path string
contents string
encoding System
리턴 void

WriteAllText() 공개 정적인 메소드

public static WriteAllText ( string path, string contents ) : void
path string
contents string
리턴 void

WriteAllText() 공개 정적인 메소드

public static WriteAllText ( string path, string contents, System encoding ) : void
path string
contents string
encoding System
리턴 void