Categories > Coding > C# >

Text editor.json save

Nydia

Big Fella

Posts: 40

Threads: 6

Joined: Mar, 2021

Reputation: 0

Posted

How do i make it so that when the user exits the application, every character in the text editor saves to a json file, so that when they re-open the app its still there?

  • 0

                                                                                                                                                  AMONG US

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

Simply write the text in the editor to a text file when the user exits. Then when the user opens the application again, read the text from the text file and put it in the editor.

  • 0

Nydia

Big Fella

Posts: 40

Threads: 6

Joined: Mar, 2021

Reputation: 0

Replied

@OrbitRBX i chose .json for an example because thats what im most familiar with

  • 0

Added

@OrbitRBX also, do i need to make a preset textfile because doesnt writealltext() require a path?

  • 0

Added

@OrbitRBX sick, tahnks charrs

  • 0

                                                                                                                                                  AMONG US

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )