Python Forum
Exporting Python Output to Notepad
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exporting Python Output to Notepad
#1
Hi
i am trying create a file in Python 2.6.6. Its working in Python 2.7

fp = open('command_file.txt', 'w')
fp.write(device1 + '#' + intstatus + '\n' + device1 + '#\n')

command_file.txt is not being created when i run in Python 2.6.6 . any idea how to fix it up ?
Reply


Messages In This Thread
Exporting Python Output to Notepad - by Nirmal - Aug-28-2018, 03:18 PM
RE: Exporting Python Output to Notepad - by Nirmal - Aug-28-2018, 04:01 PM
RE: Exporting Python Output to Notepad - by Nirmal - Sep-02-2018, 02:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Exporting Stock Fundamental Data to a CSV file with yahoo_fin DustinKlent 2 4,738 Aug-01-2022, 06:08 PM
Last Post: paulyan
Question Trouble installing modules/libraries and getting Notepad++ to show cyrillic letters Dragiev 6 2,263 Jul-24-2022, 12:55 PM
Last Post: Dragiev
  Exporting dataframes to excel without loosing datetime format Rafa 0 1,240 Oct-27-2021, 10:42 AM
Last Post: Rafa
  Exporting a huge dataFrame stylingpat 5 15,662 Mar-23-2021, 12:13 AM
Last Post: stylingpat
  exporting all lines YazeedbnMohmmed 2 2,131 Feb-24-2021, 03:29 AM
Last Post: YazeedbnMohmmed
  Python code for exporting table using Selenium gj31980 4 3,009 Aug-04-2020, 01:29 AM
Last Post: gj31980
  Exporting data from python into excel Zankawah 5 3,409 Jun-02-2020, 03:17 AM
Last Post: buran
  Variable from notepad problem samuelbachorik 2 2,303 Apr-10-2020, 09:04 AM
Last Post: samuelbachorik
  Exporting list with dictionary to Excel veromi22 0 3,051 Oct-15-2019, 12:54 AM
Last Post: veromi22
  Exporting to Excel Nirmal 5 2,774 Aug-08-2019, 12:22 PM
Last Post: Nirmal

Forum Jump:

User Panel Messages

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