Python Forum
Problem with assigning directory of a file based on cell name
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with assigning directory of a file based on cell name
#2
something like:
>>> filelist = []
>>> with open('c_name.txt') as fp:                   
...     for line in fp:                              
...         filelist.append(line.strip())            
...                                                  
>>> filelist                                         
['ce_ll_sum', 'ce_ls_sub', 'ce_ll_add', 'ce_ls_clk'] 
>>>                                                  
Reply


Messages In This Thread
RE: Problem with assigning directory of a file based on cell name - by Larz60+ - Jul-03-2018, 10:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Copy Paste excel files based on the first letters of the file name Viento 2 512 Feb-07-2024, 12:24 PM
Last Post: Viento
  Color a table cell based on specific text Creepy 11 2,199 Jul-27-2023, 02:48 PM
Last Post: deanhystad
  Using pyinstaller with .ui GUI files - No such file or directory error diver999 3 3,682 Jun-27-2023, 01:17 PM
Last Post: diver999
  Split pdf in pypdf based upon file regex standenman 1 2,192 Feb-03-2023, 12:01 PM
Last Post: SpongeB0B
  Extract file only (without a directory it is in) from ZIPIP tester_V 1 1,069 Jan-23-2023, 04:56 AM
Last Post: deanhystad
  Problem with print variable in print.cell (fpdf) muconi 0 699 Dec-25-2022, 02:24 PM
Last Post: muconi
Thumbs Up Need to compare the Excel file name with a directory text file. veeran1991 1 1,179 Dec-15-2022, 04:32 PM
Last Post: Larz60+
  no such file or directory in SFTP saisankalpj 2 1,637 Nov-25-2022, 11:07 AM
Last Post: DeaD_EyE
  Deleting rows based on cell value in Excel azizrasul 11 2,829 Oct-19-2022, 02:38 AM
Last Post: azizrasul
Photo Making Zip file of a file and Directory Nasir 2 1,075 Oct-07-2022, 02:01 PM
Last Post: Nasir

Forum Jump:

User Panel Messages

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