Skip to content

Sontsevolosa/py-create-file-from-input

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create a file from input

Write an app that will create a file with a given name and content.

  • When the app is launched, ask the user to enter the file name.
  • When the name is provided, ask to enter next line of the content in a while loop until user enters stop.
  • When the user completes interaction, create a file with name and fill it with content provided by user. File extension should be txt.

Example:

Enter name of the file: name1
Enter new line of content: This is the first line of content
Enter new line of content: This is the second
Enter new line of content: stop
# File name: "name1.txt"
# File content:
# This is the first line of content
# This is the second

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%