Top "File-read" questions

How to read a large file - line by line?

I want to iterate over each line of an entire file. One way to do this is by reading the …

python file-read
Reading from file using fgets

I am reading from file of format 1 32 43 23 32 43 123 43 54 243 123 2222 2 Here is my code snippet. string[100]; while(!feof(fp)) fgets(string,100,fp) Now, …

c fgets file-read
How to compare an ASCII value

I want to store the ASCII value of a letter into a variable, how can I do this? for example : …

c file text ascii file-read
java: how to use bufferedreader to read specific line

Lets say I have a text file called: data.txt (contains 2000 lines) How do I read given specific line from: 500…

java bufferedreader file-handling file-read
How can we read a json file as json object in golang

I have a JSON file stored on the local machine. I need to read it in a variable and loop …

json go file-read
Reading numbers as strings

I am new at R programming and I want to read a text file in R. One of the columns, …

r file file-read formal-languages
\377 character in c

i am trying to read a file in c. i have a .txt file and it has that content: file_…

c file-read
Read a pgm file in python

I am interested in reading a pgm file in python as a numerical file/matrix Right now I open the …

python file file-read pgm
Fastest file reading in a multi-threaded application

I have to read a 8192x8192 matrix into memory. I want to do it as fast as possible. Right now …

c++ multithreading file-read
Read file and get key=value without using java.util.Properties

I'm building a RMI game and the client would load a file that has some keys and values which are …

java file-io properties key-value-coding file-read