using System.IO;
StreamWriter SW = new StreamWriter(@"NextGenUpdate.txt", true);
if (File.Exists(@"NextGenUpdate.txt"))
{
File.Delete(@"GPAD0_MP.PRF");
StreamWriter SW = new StreamWriter(@"NextGenUpdate.txt", true);
//MessageBox to show were it's been saved.
MessageBox.Show("File has Been successfully Created\n Saved To :" + Application.StartupPath)
}
else
{ StreamWriter SW = new StreamWriter(@"NextGenUpdate.txt", true); }
using [COLOR="red"]TestForm[/COLOR].Properties;
InjectText()
{
StreamWriter SW = new StreamWriter(@"Tutorial.txt", true);
SW.Write(Settings.Default.SettingName);
SW.Close();
}
{
timer1.Start();
Settings.Default.SettingName = textEditorControl1.Text;
InjectText();
}
System.Diagnostics.Process.Start("C://" + Application.StartupPath + "/FILENAME.FORMAT");
System.Diagnostics.Process.Start("C://" + Application.StartupPath + "/FOLDER/FILENAME.FORMAT");
File.Delete("filepath");//delete file
byte[] buffer = File.ReadAllBytes("filepath");//reads all of the bytes in a file to a byte[]
File.WriteAllBytes("path", byte[]);//writes the byte[] to the specified post
string whatever = File.ReadAllText("path");//reads all of the text as a string into the string (char*)
/*this is how you append to a file*/
string filePath = "c:\\text.txt";
string dataToWrite = "trolololol";
File.WriteAllText(filePath, File.ReadAllText(filePath) + dataToWrite);
System.Diagnostics.Process.Start(filePath); //Open a file with default configuration
File.Move("oldFilePath", "newFilePath"); //Move a file
File.Delete("filepath");//delete file
byte[] buffer = File.ReadAllBytes("filepath");//reads all of the bytes in a file to a byte[]
File.WriteAllBytes("path", byte[]);//writes the byte[] to the specified post
string whatever = File.ReadAllText("path");//reads all of the text as a string into the string (char*)
/*this is how you append to a file*/
string filePath = "c:\\text.txt";
string dataToWrite = "trolololol";
File.WriteAllText(filePath, File.ReadAllText(filePath) + dataToWrite);
System.Diagnostics.Process.Start(filePath); //Open a file with default configuration
File.Move("oldFilePath", "newFilePath"); //Move a file
Copyright © 2024, NextGenUpdate.
All Rights Reserved.