Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Handling a .txt text
Post: RE: Handling a .txt text

It works!!
reinalazaro General Coding Help 7 2,912 Jan-11-2020, 09:24 PM
    Thread: Handling a .txt text
Post: RE: Handling a .txt text

Thank you guys for the help! I'm moving forward with your tips, but it breaks me another issue. f = open("file.txt", "r") for line in f: for item in line.split(' '): if "NET" in item....
reinalazaro General Coding Help 7 2,912 Jan-11-2020, 01:59 AM
    Thread: Handling a .txt text
Post: Handling a .txt text

Hi, Folks! I'm trying to open a .txt file and find a line with a specific expression but the return isn't what I expected: f = open("file.txt", "r") for line in f: if "Net" in line: ...
reinalazaro General Coding Help 7 2,912 Jan-09-2020, 01:27 AM

User Panel Messages

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