21 Replies
with the File.WriteAllText for example 🤔
how to write this code?
you have a button or anything to save ?
yes
so you have something like
ok
thank
File.WriteAllTextAsync Method (System.IO)
Asynchronously creates a new file, writes the specified string to the file, and then closes the file. If the target file already exists, it is overwritten.
what is
File
a class
ok
you should start with the basics
what do you mean
if you don't know recognize a class you need to learn basics before going into a gui app with more complexity 🤔
nvm
@x0rld
you know how to load from txt to textbox?
load text ?
yes
what do you mean ?
click button and it load text from txt to TextBox
there is a method in the File class to load text from file after it's just a string you can put in your textbot
okaay
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.