Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

get directory of file c#

using System.IO;

string file = "C:Documentsfile.txt";
Path.GetDirectoryName(file);
Comment

get folders in directory c#

string[] folders = System.IO.Directory.GetDirectories(@"C:My Sample Path","*", System.IO.SearchOption.AllDirectories);
Comment

c# read file current directory

var path = Path.Combine(Directory.GetCurrentDirectory(), "fileName.txt");
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# font bold set 
Csharp :: get text component unity 
Csharp :: bootstrap modal popup 
Csharp :: unity destroy object invisible 
Csharp :: c# multiple catch exceptions 
Csharp :: C# get string as stream 
Csharp :: start the terminal from c# 
Csharp :: insert new item listview c# 
Csharp :: instantiate iqueryable c# 
Csharp :: compare two binary tree 
Csharp :: c# list append 
Csharp :: unity how get random color to material 
Csharp :: how to convert nullable datetime datarow to datetime in c# 
Csharp :: how to move towards an object unity 
Csharp :: c# how to refreshyour bindingsource 
Csharp :: unity target frame rate 
Csharp :: get hard disk serial number 
Csharp :: unity create gameobject 
Csharp :: how to change a string variables value c# 
Csharp :: unity c# 
Csharp :: csharp 
Csharp :: mute sound unity 
Csharp :: c# remove duplicates from datatable 
Csharp :: c# textbox numbers only 
Csharp :: system.drawing.color from hex 
Csharp :: unity object change sprite 
Csharp :: get last 4 character c# 
Csharp :: how to verify the scene unity 
Csharp :: response redirect new tab 
Csharp :: list clone - C# 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =