Line By Line is a NodeJS module that helps you reading large text files, line by line, without buffering the files into memory.
Questions tagged [line-by-line]
114 questions
2
votes
1 answer
Line by line execution for javascript object
I am trying to validate an image URL if it exists or not using JavaScript. Basically I want to assign the URL to image if its valid. But the JavaScript function which validates the URL, as not executing line-by-line, disrupts the logic and returns…

Aakash Jain
- 730
- 1
- 12
- 31
2
votes
2 answers
c++ reading a a txt file line by line into a char array within an array of structures
I'm new to C++ and having a bit of trouble understanding the whole reading a file stream thing.. any help would be appreciated... here's where i'm having trouble
I Have an array of structures like this; (no I'm not allowed to use string to store…

user3427104
- 23
- 1
- 4
2
votes
2 answers
indexing of large text files line by line for fast access
I have a very large text file around 43GB which I use to process them to generate another files in different forms. and i don't want to setup any databases or any indexing search engines
the data is in the .ttl format…

Hady Elsahar
- 2,121
- 4
- 29
- 47
2
votes
4 answers
How can I understand if I am reading the last line of a file in bash?
I would like to read a file line by line, edit the line and put it into a new file:
while read my_line
do
# doesn't handle the last OR
printf "'%s'\$label OR " $my_line >> delivered
done < "labels.txt"
Unfortunately, by following this…

mikap83
- 23
- 4
2
votes
3 answers
(VB6) Reading text files line by line looking for specific words
Good afternoon StackOverflow,
I've just signed up here - I've been using this site for ages, and it seems to always be the site to supply the answer so I decided to be part of things.
Without further ado, here is my question -
I am writing an API…

N3cRiL
- 85
- 2
- 3
- 8
2
votes
3 answers
How to avoid to add one empty char at beginning while reading a file in Java?
I have several dictionary files that i read in Java and while reading them line by line, i use this code:
public static void main(String args[]) {
try {
FileInputStream fstream1 = new FileInputStream("de-DE.dic");
…

Figen Güngör
- 12,169
- 14
- 66
- 108
1
vote
2 answers
Is there an R online compiler that enables to run code line by line?
I'm looking for an R online compiler, such as myCompiler, that enables to run code line by line.
Like what one gets in RStudio when pressing the Run button or Ctrl+Enter

Julien
- 1,613
- 1
- 10
- 26
1
vote
1 answer
how to download an unrestricted line from a file using the fread function?
I have a question how to download a line of text from the file without specifying the size of this line? I wouldn't want to use fgets because you have to give the fgets to the characters in advance. I can load the whole file, but not one line.…

Roundstic
- 21
- 3
1
vote
1 answer
Reading line by line with python's Pandas after skipping first 48 rows
The title is fairly explanatory.
I have a long CSV file that I would like to read line by line with the following code:
lines = []
for line in pd.read_csv(file, chunksize = 1, header = None):
lines.append(line.iloc[0 0])
print(lines)
I'd like…

Taylor
- 89
- 1
- 11
1
vote
1 answer
Arduino: How to read SD card text file line by line
I'm working on a project to read "current" in "data.txt" from SDcard. Goal is to read it line by line and input to my int "TargetCur".
Code structure:
1. Open "data.txt" from SDcard
2. Read first line data
3. Input read data into int "TargetCur"…

kin
- 67
- 4
- 12
1
vote
3 answers
Read multiples file line by line in parallel (Nodejs)
I have 2 files (or more) 1.txt and 2.txt.
1.txt
1-a
1-b
1-c
2.txt
2-a
2-b
2-c
Now I want 1.txt and 2.txt were read in parallel line by line, and write that line into result.txt after read. result.txt.
1.a + 2.a
1.b + 2.b
1.c + 2.c
How can I do…

Vu Thuy
- 33
- 6
1
vote
2 answers
Separately scanning a sentence and number(s) in C
Let's say I have a text file (hw.dat) that lists data (name, height(cm), weight(kg)):
Yuri 164 80
Lai San Young 155 60
John Wayne 180 93
and the list continues.
I'd like to scan and print all of the data in this…

Tan En De
- 331
- 1
- 3
- 13
1
vote
0 answers
call a function when all callbacks inside loop are finished
I have a simple script that processes a large file of hostnames using readLine api, it reads line by line, and for every hostname I call an asynchronous dns function to get an ip address related to the hostname.
here is my code:
const readline =…

YouneL
- 8,152
- 2
- 28
- 50
1
vote
1 answer
Is it possible to test for breaking spaces?
I'm trying to parse minimal mark-up text by lines. Currently I have a for loop that parses letter by letter. See the code below:
Text:
This is some text that
represents accurately the way I
have written my…

nastetajup
- 11
- 1
- 4
1
vote
1 answer
I'm trying to make a converting script, but I'm stuck with loops
I have no education in creating scripts but I tried making a vbscript based on ideas that I found on the internet. My objective is to turn
[00:15:63]ki[00:16:09]e[00:16:36]ru
into
[00:15.63]ki<00:16.09>e<00:16.36>ru
per line for each text…

Stephan Jonkers
- 21
- 3