python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How do I print a random full link from a text file?
In the text file "unt.txt" there's 38 links all on their own lines. How do I print a random link from the file? This code below just returns a random amount of characters in a link and not t...
spiffy
Votes: 0
Answers: 2
How to substitute libedit readline with GNU readline on Mac OS
On my Mac OS (Moneterey 12.1) I see $NetBSD: readline.h, v 1.33 2012/05/15 which I guess is a part of libedit library. I want to use readline.h which is a part of GNU readline library.
Is it possible...

Ardak S
Votes: 0
Answers: 1
Python read n line of a file with zipfile.ZipFile
I would like to know if it's possible to read the second line of each files contains in a zip file?
zf = zipfile.ZipFile(myzip.zip)
for f in zf.namelist():
csv_f = zf.read(f)
first_line = csv_f....
Indi59
Votes: 0
Answers: 1
python readline module giving PermissionError: [Errno 1] only when run at startup
I'm making a console based game that saves input history, to help with debugging I created a function that will automatically input commands on start
def __readfile (self) -> None:
lines = None...
Tristan
Votes: 0
Answers: 1