SpookyToad
SpookyToad
CC#
Created by SpookyToad on 9/30/2024 in #help
✅ Is it possible to clean up all this in a vs release folder?
No description
7 replies
CC#
Created by SpookyToad on 8/24/2024 in #help
Is it possible to add Markup support to this text editor I made in Winforms?
No description
5 replies
CC#
Created by SpookyToad on 8/24/2024 in #help
How can i send text files with a discord bot?
I want to make a ticket system with my discord bot that would save the messages sent in a ticket channel into a text file, send the file to a channel when the ticket is closed, and then delete the file from my PC, how can I do this?
3 replies
CC#
Created by SpookyToad on 8/23/2024 in #help
Not writing, but not returning errors
private void button1_Click(object sender, EventArgs e)
{
try
{

string baseDir = AppDomain.CurrentDomain.BaseDirectory;

string currentDirectory = Directory.GetCurrentDirectory();
string filePath = Path.Combine(currentDirectory, "Dialog.txt");
MessageBox.Show(filePath);


using (StreamWriter writer = new StreamWriter(filePath))
{
writer.Write("Yes");
}

}
catch (Exception ex)
{
MessageBox.Show($"{ex}");
}

this.Close();
}
private void button1_Click(object sender, EventArgs e)
{
try
{

string baseDir = AppDomain.CurrentDomain.BaseDirectory;

string currentDirectory = Directory.GetCurrentDirectory();
string filePath = Path.Combine(currentDirectory, "Dialog.txt");
MessageBox.Show(filePath);


using (StreamWriter writer = new StreamWriter(filePath))
{
writer.Write("Yes");
}

}
catch (Exception ex)
{
MessageBox.Show($"{ex}");
}

this.Close();
}
The directory that VS gives when I copy the path: C:\Users\Confidential\source\repos\Toad Editor\Toad Editor\File Selector\Dialog.txt The directory this gives me: C:\Users\Confidential\source\repos\Toad Editor\Toad Editor\bin\Debug\net8.0-windows\Dialog.txt
9 replies