Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

wpf load file content

OpenFileDialog openFileDialog = new OpenFileDialog
{
    Filter = "TXT file (*.txt)|*.txt"
};
string fileContent = "";
            
if (openFileDialog.ShowDialog() == true){
    fileContent = System.IO.File.ReadAllText(openFileDialog.FileName);
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity rotate vector 
Csharp :: c# string to uri 
Csharp :: vs code explorer font size 
Csharp :: c# list shuffle 
Csharp :: how to copy a file in c# 
Csharp :: add items to listbox from text file c# 
Csharp :: add tablelayoutpanel dynamicly to winform in c# 
Csharp :: bower azure repository tag 
Csharp :: c# wirite to csv 
Csharp :: enable canvas unity 
Csharp :: how to draw over label C# 
Csharp :: c# declare inline string array 
Csharp :: unity how to reorder a list 
Csharp :: c# random string 
Csharp :: c# convert enum to list 
Csharp :: unity bullet script 
Csharp :: unity 2d looka tt mouse 
Csharp :: how to center text in console application 
Csharp :: unity agent bake not derecting mesh 
Csharp :: unity3d random 
Csharp :: print in c# unity 
Csharp :: unity c# delay function 
Csharp :: c# get month number from name 
Csharp :: key press up unity 
Csharp :: how consider the first caracter in Split c# 
Csharp :: c# read text file separated by comma 
Csharp :: how do i make multiplayer in unity 
Csharp :: unity custom update 
Csharp :: if char is upper csharp 
Csharp :: hide datagrid column c# 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =