Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

replace text c# file

string text = File.ReadAllText("test.txt");
text = text.Replace("some text", "new value");
File.WriteAllText("test.txt", text);
Comment

PREVIOUS NEXT
Code Example
Csharp :: how to get rigidbody speed in unity 
Csharp :: query parameter c# controller 
Csharp :: unity raycast all layers except one 
Csharp :: remove all non number in c# 
Csharp :: random value in array c# 
Csharp :: how o remove .meta files visual studio code 
Csharp :: c# insert into database 
Csharp :: how to change scenes with button press in unity c# 
Csharp :: generate random number c# 
Csharp :: stop process c# 
Csharp :: how to change the extension of a file C# 
Csharp :: c# press key 
Csharp :: substring c# after character 
Csharp :: c# kill all processes by name 
Csharp :: taking input in single line c# 
Csharp :: how to set image Source in the code C# 
Csharp :: c# get file extension 
Csharp :: c# windows application get current path 
Csharp :: why vue cli do not refresh auto in local host 
Csharp :: unity rotate vector 
Csharp :: c# take only int from string 
Csharp :: c# square every digit of a number 
Csharp :: C# inline question mark on object 
Csharp :: c# filter non alphanumeric characters 
Csharp :: unity2d click on gameobject 
Csharp :: move file from one folder to another c# 
Csharp :: elevated priviledge in c# 
Csharp :: oncollisionenter compare tag 
Csharp :: c# negative index 
Csharp :: random seed in c# 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =