NET/קבצים: הבדלים בין גרסאות בדף
תוכן שנמחק תוכן שנוסף
אין תקציר עריכה |
אין תקציר עריכה |
||
שורה 48:
</source>
==עבודה עם ספריות וקבצים מתקדמים==
מחלקה FileIO.FileSystem מכילה שיטות לעבודה עם ספריות וכן עבודה מתקדמת עם קבצים.
* עבודה עם ספריות, כמו יצירת ספריה, העתקה, העברה וכדומה:
<source lang="vbnet">
Drives()
CreateDirectory()
CurrentDirectory()
DirectoryExists()
DeleteDirectory()
GetDirectories()
CombinePath()
CopyDirectory()
RenameDirectory()
MoveDirectory()
GetParentPath()
</source>
עבודה עם קבצים, כמו קבלת רשימת קבצים בספריה, יצירת קובץ זמני, עבודה עם סטרים, וקריאת ושמירת קבצים:
<source lang="vbnet">
GetFileInfo()
GetFiles()
GetTempFileName()
OpenTextFieldParser()
OpenTextFileReader()
ReadAllBytes()
ReadAllText()
WriteAllBytes()
WriteAllText()
FindInFiles()
</source>
=== חיפוש קבצים בספריות ===
|