Create Hotstring from .txt-file.
Posted: 15 Sep 2020, 07:59
Hello!
I've been searching for an answer for a long time but I haven't managed to find one..
What I want to do is simply, in my script, I want to be able to write hotstrings in an .txt-file, read this file and create hotstrings from it.
txt-file might be:
btw = by the way
ama = ask me anything
woops = oops I did it again.
abc = abcdefghijklmnopqrstuvwyz
Piggies = Once upon a time there was an old mother pig who had three little pigs and not enough food to feed them. So when they were old enough, she sent them out into the world to seek their fortunes.
donkeys = little
donkey
had a big big
farm
shoots = I shot the sheriff, but I didn't shoot no... what?
DEPUTY!
and If possible, make is to that it includes linebreaks in a good way?
Example, if I read the above txt-file, i'd like my script to contain the following hotstrings in the following way (I assume it needs to be the same for every string, else it'll get really complicated :p ) :
I've been searching for an answer for a long time but I haven't managed to find one..
What I want to do is simply, in my script, I want to be able to write hotstrings in an .txt-file, read this file and create hotstrings from it.
txt-file might be:
btw = by the way
ama = ask me anything
woops = oops I did it again.
abc = abcdefghijklmnopqrstuvwyz
Piggies = Once upon a time there was an old mother pig who had three little pigs and not enough food to feed them. So when they were old enough, she sent them out into the world to seek their fortunes.
donkeys = little
donkey
had a big big
farm
shoots = I shot the sheriff, but I didn't shoot no... what?
DEPUTY!
and If possible, make is to that it includes linebreaks in a good way?
Example, if I read the above txt-file, i'd like my script to contain the following hotstrings in the following way (I assume it needs to be the same for every string, else it'll get really complicated :p ) :
Code: Select all
:*:btw::by the way
:*:ama::ask me anything
:*:woops::oops I did it again.
:*:abc::abcdefghijklmnopqrstuvwyz
:*:Piggies::Once upon a time there was an old mother pig who had three little pigs and not enough food to feed them. So when they were old enough, she sent them out into the world to seek their fortunes.
:*:donkeys::
(
little
donkey
had a big big
farm
)