StackOverflow Questions for Tag: readlines

Julie Raswick
Julie Raswick

Reputation: 20383

How to read a file line-by-line into a list?

Score: 2023

Views: 5096526

Answers: 28

Read More
user3765883
user3765883

Reputation: 325

Python: lines =file.readlines() puts extra 'b' character in front of each line?

Score: -3

Views: 51

Answers: 1

Read More
user78706
user78706

Reputation:

ungetc in Python

Score: 2

Views: 2609

Answers: 6

Read More
user7524882
user7524882

Reputation: 9

Python strip() and readlines()

Score: -2

Views: 3099

Answers: 4

Read More
CivilizedMullet
CivilizedMullet

Reputation: 3

Read lines of Txt file, edit specific lines, then write full Txt file to new file - C#

Score: 0

Views: 66

Answers: 1

Read More
Jrbald
Jrbald

Reputation: 15

R timeout with readLines

Score: 0

Views: 43

Answers: 0

Read More
Ernesto
Ernesto

Reputation: 35

need to close after FILE.READLINES

Score: 0

Views: 60

Answers: 2

Read More
amy-elouise
amy-elouise

Reputation: 35

.readlines() returns empty list

Score: 2

Views: 232

Answers: 2

Read More
Alif
Alif

Reputation: 28

readlines files in r with differents encoding

Score: 0

Views: 34

Answers: 1

Read More
Max Sikorsky
Max Sikorsky

Reputation: 19

Check whether a string contains a specific word and change it

Score: 1

Views: 60

Answers: 2

Read More
Bermuda
Bermuda

Reputation: 201

Is there a difference between : "file.readlines()", "list(file)" and "file.read().splitlines(True)"?

Score: 19

Views: 21338

Answers: 6

Read More
ishu
ishu

Reputation: 5

How write python to Read the first two lines from a text file named "file1.txt" Write the two lines read from "file1.txt" to a new file "file2.txt"

Score: -2

Views: 6664

Answers: 8

Read More
vokeme
vokeme

Reputation: 5

Python loop doesn't work with readlines()

Score: 0

Views: 89

Answers: 2

Read More
Leah Bevis
Leah Bevis

Reputation: 396

How to convert data in a character class object to dataframe in R

Score: 1

Views: 358

Answers: 1

Read More
User_zyp9
User_zyp9

Reputation: 61

Read a file to check for existence of multiple strings

Score: 0

Views: 62

Answers: 2

Read More
Yotam
Yotam

Reputation: 10495

How to read a file without newlines?

Score: 703

Views: 849060

Answers: 15

Read More
Bluetail
Bluetail

Reputation: 1291

Is there a better way to access values in a JSON file than a 'for' loop?

Score: 0

Views: 79

Answers: 2

Read More
Alok
Alok

Reputation: 31

Parse a file and create a data structure

Score: 1

Views: 111

Answers: 3

Read More
Alok
Alok

Reputation: 31

Need to parse a file and create a data structure out of it

Score: 0

Views: 109

Answers: 2

Read More
Parine
Parine

Reputation: 101

convert two input files into certain string rules by python

Score: 0

Views: 123

Answers: 3

Read More
PreviousPage 1Next