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 do I treat strings separated by spaces in text files?
I have a text file containing a string of '0's and '1's, followed by a space and another string of '0's and '1's of the same length. What would be the easiest way of storing the string before the spac...
ajox3412
Votes: 0
Answers: 2
Best way to navigate between records in a text file?
I must use records in text files for my college project and be able to navigate between them. This is easy enough, I have a forward and back arrow set of buttons and can easily navigate between by +1 ...
BigBootyProgrammer
Votes: 0
Answers: 1
Why does read() not work with 'w+' or 'r+' mode in open() function python
When ever I use the open with the 'r+' or the 'w+' parameters, It doesn't want to read the text file.
Inside Text Document:
hello
Python Code Examples:
code:
with open(file_name, 'r') as o:
print(...
Max Werner
Votes: 0
Answers: 2