Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

get directory of file c#

using System.IO;

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

c# read file current directory

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

c# read file from directory

string[] files = Directory.GetFiles(tx_path1.Text);

for(var i = 0; i < files.Length; i++)
{

}
Comment

PREVIOUS NEXT
Code Example
Csharp :: how to chagne rotation in unity 
Csharp :: VLC .net 
Csharp :: c# find duplicates in list of strings 
Csharp :: c# read binary file 
Csharp :: c# get last item in list 
Csharp :: how to copy last element in list c# 
Csharp :: know to which direction Vector.MoveTowards is moving unity 2D 
Csharp :: unity on inspector change 
Csharp :: c# cast to type variable 
Csharp :: change sprite of a sprite unity 
Csharp :: c# foreach char in string 
Csharp :: convert iformfile to byte array c# 
Csharp :: how to print dictionary in c# 
Csharp :: javascript close page after 5 seconds 
Csharp :: smtp check if email sent 
Csharp :: c# array to list 
Csharp :: rotating an object in unity 
Csharp :: how to make panel scrollable c# 
Csharp :: write line to file c# 
Csharp :: c# 2d list 
Csharp :: change button color in script unity 
Csharp :: unity editor dropdown 
Csharp :: how to use the mouse scroll wheel to move the camera in unity 
Csharp :: how to check if file contains image c# 
Csharp :: c# get char from string 
Csharp :: how to pass string value to enum in c# 
Csharp :: initialize list in c# 
Csharp :: {"The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel."} 
Csharp :: how can prevent the empty input in jquery 
Csharp :: streamwriter c# 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =