VB.NET : File
Top 35 VB.NET Example Pages...

[["/BXCY6676F.BhSTUUUUTTUUUUSTTUUUUTTUUUU","rw.","File Extension."," A file has an extension. This is optional. It occurs at the end of the file name. With the Path.GetExtension Function we acquire the extension. We then make decisions based on its value. This method has some interesting behavior. ","Path ","path-vbnet","Example."," In this example, you can see that the string literal contains a Windows file system path. Next, the extension is extracted by invoking the Path.GetExtension method. You pass the string reference to this function as an argument. ","Finally: ","The program shows exactly what the extension is. The period is included at the start of the three-character extension.","VB.NET program that uses Path.GetExtension","\n\nImports System.IO\n\nModule Module1\n Sub Main()","\n ' Input path.\n ","Dim p As String = \"C:\\Users\\Sam\\Documents\\Test.txt\"","\n ' Get extension.\n ","Dim extension As String = ","Path.GetExtension","(p)","\n\n ' Display extension.\n ","Console.WriteLine(extension)\n Console.WriteLine(\".txt\" = extension)\n End Sub\nEnd Module\n\n","Output","\n\n.txt\nTrue","When using Path.GetExtension,"," developers may assume the period is not included in the extension string. To compare the extension string, you must use a string literal such as \".txt\" with the period prefixing the three letters. ","Strings ","string-vbnet","Summary."," With the Path.GetExtension function in the VB.NET language, you can quickly and reliably determine what the extension of a file name or path is. Many inputs are accepted by this function. It allows for many different formats of paths. ","ins","class","adsbygoogle","data-ad-client","ca-pub-4712093147740724","data-ad-slot","6227126509","data-ad-format","auto","br","ins","class","adsbygoogle","data-ad-client","ca-pub-4712093147740724","data-ad-slot","6227126509","data-ad-format","auto","br","ins","class","adsbygoogle","data-ad-client","ca-pub-4712093147740724","data-ad-slot","3679700504","data-ad-format","link","br","ins","class","adsbygoogle","data-ad-client","ca-pub-4712093147740724","data-ad-slot","6227126509","data-ad-format","auto"],"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL4AAABsCAMAAADjXPiLAAAAMFBMVEX///9522Pv/un1//JS0zDB77bT9Myw6aWU4oXp/+H5//ft/+b8//ry/+3h+Ns1zgBIqVA6AAAC7UlEQVR4Xu3Y65KqMBAEYHIP9/d/23NWZAiNVFxr1aZq+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