FileSystem.GetFileInfo : FileStream « System.IO « VB.Net by API






FileSystem.GetFileInfo

  
Public Class Tester
    Public Shared Sub Main
    
        Dim fileDetail As IO.FileInfo = My.Computer.FileSystem.GetFileInfo("test.txt")
        Console.WriteLine(fileDetail.IsReadOnly)
        Console.WriteLine(CBool(fileDetail.Attributes And IO.FileAttributes.Hidden))
    End Sub

End Class

   
    
  








Related examples in the same category

1.New FileStream(String fileName, FileMode fm)
2.FileStream.Length
3.FileStream.Lock
4.FileStream.Seek
5.FileStream.SetLength
6.FileStream.Unlock