![]() If you are performing multiple operations on the same file, it can be more efficient to use FileInfo instance methods instead of the corresponding static methods of the File class, because a security check will not always be necessary. Use the FileInfo class for typical operations such as copying, moving, renaming, creating, opening, deleting, and appending to files. HelloĬ:\Users\userName\AppData\Local\Temp\tmp70AB.tmp was copied to C:\Users\userName\AppData\Local\Temp\tmp70CB.tmp.Ĭ:\Users\userName\AppData\Local\Temp\tmp70CB.tmp was successfully deleted. This example produces output similar to the following. using namespace System Ĭonsole::WriteLine( ".") On subsequent calls, you must call Refresh to get the latest copy of the information. When the properties are first retrieved, FileInfo calls the Refresh method and caches information about the file. The following example demonstrates some of the main members of the FileInfo class. ![]() SerializableAttribute ComVisibleAttribute Examples
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |