Top "File-read" questions

Clearest way to read and print .txt file lines in C

There are a bunch of ways describing how to use various methods to print out lines of a text file …

c file-io scanf printf file-read
Reading word by word from text file in C

I am very new to C. I am trying to read the words from a file which contains lots of …

c char fopen fgetc file-read
How to remove line break when reading files in Ruby

I'm trying to get rid of the brackets [] and the new line \n from being printed. My code looks like: …

ruby line newline file-read chomp
Read file until specific line in python

I have one text file. I am parsing some data using regex. So open the file and read it and …

python regex python-2.7 file file-read
Read a file until a character in C

Say I have a file with the format: key1/value1 key2/value2 key3/value3 .... Say I have an array to …

c file-io file-read
Which function should I use to read unstructured text file into R?

This is my first ever question here and I'm new to R, trying to figure out my first step in …

r text-processing file-read readlines
How to convert a string to uint32_t

I have a program which reads the contents of a file line by line, stores each line into a vector …

c++ types casting io file-read
Multiline file read in Python

I am looking for a method in Python which can read multiple lines from a file(10 lines at a time). …

python file file-read
Python 2.7 CSV file read/write \xef\xbb\xbf code

I have a question about Python 2.7 read/write csv file with 'utf-8-sig' code, my csv . header is ['\xef\…

python python-2.7 csv file-writing file-read
How to determine 'word' size in Python

I need to know the number of bytes in a 'word' in Python. The reason I need this is I …

python word byte file-read