Questions tagged [read-data]
130 questions
0
votes
1 answer
how can i fix this syntax error in QBASIC about READ DATA
This is my code
INPUT "what year right now : ", thn1
CLS
thn2 = thn1
num = 0
PRINT "No Jenis Kelamin Tanggal Lahir NPM Nama"
10 READ jk$, tgl$, thl, npm$, nma$
IF jk$ = "0" THEN END
thn1 = thn2
thn1 = thn1 - thl
IF jk$ = "L" OR…

The Dark Lord
- 11
- 1
0
votes
1 answer
Loading Selected Column from SQL to PySpark
I am new to (Py)Spark. I have a very big dataset. I have two table which I want to join. The dataset is residing in SQL database. I am using the Jupyter Notebook.
So, I just want load from SQL table only column I need for my analysis. …

James Taylor
- 484
- 1
- 8
- 23
0
votes
1 answer
Need to use seek(), tell(), next() and readline() function together
In my case, I have two csv file (file1 and file2).
To simplify my question, let's say that I want to read elements of file1, 3 by 3 and file2 4 by 4 consecutively.
file1.csv (9…

Mas A
- 207
- 1
- 11
0
votes
1 answer
How to enter into enumarate() loop more than one time
I want to read a big data file 100 by 100. But my script reads only first 100 line, then it never enters in "for loop" for the rest.
More clearly, in the end, I get only lines from 0 to 100, but I want also 100-200, 200-300, 300-400 etc. I can't…

Mas A
- 207
- 1
- 11
0
votes
1 answer
I attempted to use tf.TextLineReader to read data line by line, but olny odd-numbered line was read in
I attempted to use tf.TextLineReader to read text dataset, but olny odd-numbered line was read in. I don't know why. How should i do to make it read data line by line?
import tensorflow as…

nomadlx
- 155
- 2
- 10
0
votes
0 answers
Serial Port does not return any data
I need to write a program that will read the data from the indicator. In the Device Manager on computer the indicator is defined as USB-ITN and create virtual serial port(COM18).
Here is my code:
using System;
using…

Igor Osipov
- 157
- 1
- 12
0
votes
1 answer
How to separate a CSV file with commas as eparators and as decimals in Python
I have this data in a CSV file and i want to read it in python. The problem is that the decimal points and the delimiter are both commas. How can I read the CSV file in a way that the 1,2,3,4,6,8,10,11 and 15 commas are used as delimiters and the…
0
votes
1 answer
How to detect Timeout while receiving data through bluetooth in Android
In my Android application i send and receive data through Bluetooth to/from an Embedded Hardware device. I use a background Service to achieve this. To read bluetooth data, i use my below code,
public void run() {
Log.d("DEBUG BT", "IN…

Annie
- 160
- 1
- 2
- 15
0
votes
2 answers
Android App crashes when trying to store 3 strings from a child on a Firebase database when trying to read strings. No Authentication yet
I've already set up Firebase with the app using Tools -> Firebase and added the internet access to manifest.
I'm trying to just get the strings from the child to be saved on the app so I can use them later on when I develop it further. I dont care…

Kevin Soggy
- 9
- 5
0
votes
1 answer
Python - load unknown data as n-dim matrix
I have a data file including the "snapshots" of an unknown boardgame, such as tictactoe/dama/chess/go..etc. But i don't know the parameters of the game, such as dimension of the board, type of pieces..etc
The easiest case is the tictactoe so lets…

Kregnach
- 97
- 1
- 11
0
votes
0 answers
Reading Data from file using read function in c++
void fileRead()
{
student s22;
fstream out;
out.open("ABC.txt",ios::in);
while(!out.eof())
{
out.read((char *)&s22,sizeof(s22));
cout<

Rohit Chugh
- 59
- 1
- 7
0
votes
1 answer
How to read a structured text file and create a structure for it in Matlab?
I have a text file which contains results for many time steps. for each time step, some basic info was saved in the first line, followed by a matrix that contains other data for this step. The matrix size can differ at every time step and it is not…

open0121
- 105
- 2
- 15
0
votes
0 answers
Read data from file without blocking the system
I am new in Python, and I hope that someone can help me.
I have the main loop. IN this loop I want to use data from a file. The main problem, that I need to do this without blocking all the system in between.
Example:
f=open("./filename.txt",…

user23441
- 33
- 9
0
votes
2 answers
C Quicksort (linked list) segmentation fault
I have to create a quicksort on a linked list (in C).
I have my first and last pointer an the pivot (in this code it's the first element of the list).
The structs I have to use:
typedef struct list_element list_element;
struct list_element {
…

karthey
- 9
- 2
0
votes
1 answer
Read measurement data from a text file and put them in an array in Fortran
I would like to read my measurement data from a text file. The data have e.g. following form:
0 0.0531139
0.000157095 0.306123
0.000314191 0.133868
0.000471286 0.29799
0.000628381 0.0182098 …

ingenium
- 17
- 1
- 8