Answer the question
In order to leave comments, you need to log in
Will the script be able to create files/documents when I upload it to the server?
I am writing a telegram bot, according to my idea, the bot should create a text document in the directory with the script itself
, that is, a separate text document will be created for each user of the bot, in fact, each person will eventually fill out his document through the bot by running the script in the console on his PC this is how it works, files are created, everything is filled, BUT for some reason I have the feeling that if I place the bot on the server, then the files will not be created on the server.
So is it or not?
By the way, I check through the "os" library, os.path.exists
if the file does not exist, I create it through perhaps this is important open ("путь",'w')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question