Python Forum
search and read file given partial file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
search and read file given partial file
#2
this is where functions come in.
def read_file(filaneme):
    with open(filename) as fp:
        for line in fp:
            fp.strip()
            ...
Reply


Messages In This Thread
RE: search and read file given partial file - by Larz60+ - Jan-07-2020, 01:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Delete file with read-only permission, but write permission to parent folder cubei 6 22,191 Jun-01-2024, 07:22 AM
Last Post: Eleanorreo
  Connecting to Remote Server to read contents of a file ChaitanyaSharma 1 378 May-03-2024, 07:23 AM
Last Post: Pedroski55
  partial functions before knowing the values mikisDeWitte 4 720 Dec-24-2023, 10:00 AM
Last Post: perfringo
  file open "file not found error" shanoger 8 1,412 Dec-14-2023, 08:03 AM
Last Post: shanoger
  Recommended way to read/create PDF file? Winfried 3 3,057 Nov-26-2023, 07:51 AM
Last Post: Pedroski55
  python Read each xlsx file and write it into csv with pipe delimiter mg24 4 1,749 Nov-09-2023, 10:56 AM
Last Post: mg24
  Search Excel File with a list of values huzzug 4 1,376 Nov-03-2023, 05:35 PM
Last Post: huzzug
  Move Files based on partial Match mohamedsalih12 2 945 Sep-20-2023, 07:38 PM
Last Post: snippsat
  Need to replace a string with a file (HTML file) tester_V 1 854 Aug-30-2023, 03:42 AM
Last Post: Larz60+
  Search for multiple unknown 3 (2) Byte combinations in a file. lastyle 7 1,558 Aug-14-2023, 02:28 AM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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