Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why this code is not working?  RSS feed

 
Ertan Hasani
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone ,I wanted to do something like: When the button is pressed: to save documents .txt (the documents names should be classes names) , i made a simple code but its not woriking , can anyone help me?

 
Tony Docherty
Bartender
Posts: 3264
81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

In what way is it not working?
Does the directory structure "C:/Users/Ertan/Desktop/Orari" already exist?
 
Ertan Hasani
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tony Docherty wrote:Welcome to the Ranch.

In what way is it not working?
Does the directory structure "C:/Users/Ertan/Desktop/Orari" already exist?



when I click on the button , it create only one document (will one class name) , i need to create as much documents as classes
 
Tony Docherty
Bartender
Posts: 3264
81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will need to wrap that code in loop of some kind so it runs for as many classes as are in klaset1
 
Ertan Hasani
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tony Docherty wrote:You will need to wrap that code in loop of some kind so it runs for as many classes as are in klaset1


Thank you so much , i finished it .
 
Tony Docherty
Bartender
Posts: 3264
81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Excellent, thanks for letting us know.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!