Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# solution path

string startupPath = Environment.CurrentDirectory;
Comment

c# solution path


string startupPath = Path.Combine(Directory.GetParent(System.IO.Directory.GetCurrentDirectory()).Parent.Parent.Parent.FullName,"abc.txt");

// Read the file as one string. 
string text = System.IO.File.ReadAllText(startupPath);

Comment

PREVIOUS NEXT
Code Example
Csharp :: stack to string c# 
Csharp :: rigidbody.addtorque 
Csharp :: delete file from FTP c# 
Csharp :: beep sound in c# 
Csharp :: bubble sort in c# 
Csharp :: how to move mouse in c# 
Csharp :: loop through all enum values in C# 
Csharp :: how to freeze x and y position in rb2d with code unity 
Csharp :: unity 2d joystick controls 
Csharp :: print an array c# 
Csharp :: perlin noise unity 
Csharp :: c# winforms textbox to int 
Csharp :: c# float to string with 2 decimals 
Csharp :: fluentassertions force exceptions 
Csharp :: c# find one object in list where 
Csharp :: C# .net core convert to int round up 
Csharp :: make invisible unity 
Csharp :: casting string to enum type 
Csharp :: dotnet ef database update connection string 
Csharp :: stop a thread c# 
Csharp :: c# inline if 
Csharp :: triangle minimum path sum c# 
Csharp :: c# linq select from object list 
Csharp :: movement unity 
Csharp :: increase timeout in .net core web app 
Csharp :: c# array to list 
Csharp :: c# get command line arguments 
Csharp :: convert object to array in c# 
Csharp :: c# print console 
Csharp :: c# datagridview selected row index 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =