Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Dynamic File Name to a shared folder with open command in python
Post: Dynamic File Name to a shared folder with open com...

Need help for a file path to write to a file in a remote shared folder using with open command. Below is my sample code: import os import glob import io # Deleting the older files from the shared fol...
sjcsvatt General Coding Help 9 5,879 Jan-06-2022, 03:24 AM
    Thread: rows from sql query need to write to a file as columns
Post: RE: rows from sql query need to write to a file as...

I don't want brackets and single quotes over the text value
sjcsvatt General Coding Help 6 2,336 Oct-08-2021, 11:06 PM
    Thread: rows from sql query need to write to a file as columns
Post: RE: rows from sql query need to write to a file as...

I tried like this: with open('test_file.txt','w') as wf: for i in qry_result: f_result= ''.join(str(i))##converting into tuple splitstring = f_result.strip().replace(', ', '\n') ...
sjcsvatt General Coding Help 6 2,336 Oct-08-2021, 11:05 PM
    Thread: rows from sql query need to write to a file as columns
Post: RE: rows from sql query need to write to a file as...

I didn't understand your code, ... Where is the query out being passed to the for loop?? could you please elaborate?
sjcsvatt General Coding Help 6 2,336 Oct-08-2021, 10:54 PM
    Thread: rows from sql query need to write to a file as columns
Post: RE: rows from sql query need to write to a file as...

I will try and get back to you.
sjcsvatt General Coding Help 6 2,336 Oct-08-2021, 10:45 PM
    Thread: rows from sql query need to write to a file as columns
Post: rows from sql query need to write to a file as col...

I have a query that may have dynamic number of columns. I have include 2 columns for testing purpose. whenever they added fields to the table the number of columns in query may change. with present co...
sjcsvatt General Coding Help 6 2,336 Oct-08-2021, 09:09 PM

User Panel Messages

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