Python Forum
Saving the results from an input in a txt. file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Saving the results from an input in a txt. file
#2
Since you have no indentation, it is hard to determine what your code actually looks like.  However, the "error" code is pretty explicit. You are trying to write to a file without saying what it is you want to write.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Messages In This Thread
RE: Saving the results from an input in a txt. file - by sparkz_alot - Nov-28-2017, 02:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need help implementing an input with file operations Gaijin 3 2,171 Jun-08-2022, 05:50 PM
Last Post: Gaijin
  Changing the content of the table and saving the new data into another file femke_pythonquestion123 1 1,658 Sep-18-2020, 12:06 PM
Last Post: femke_pythonquestion123
  how to add the user input from file into list wilson20 8 4,448 May-03-2020, 10:52 PM
Last Post: Larz60+
  Saving to Json file Shambob1874 1 2,548 May-30-2018, 10:00 PM
Last Post: micseydel
  Saving an numpy.ndarray as .ply file in python Tina 4 17,273 Oct-11-2017, 06:08 PM
Last Post: Tina

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020