Questions tagged as 'csv'

1
answer

Write to a csv file with JSP without overwriting what you already have

I have this code below to write an information in the csv file, but every time I record something, what I have already written is lost. How do I add a line with the new information while retaining what I already have? String fName = "cadastros...
asked by 01.06.2016 / 19:53
1
answer

Rounding Up

I have the following list of dictionaries and the values correspond to the average value, for example, in the 1st appears 4, but in fact of 4,6666. I would like to know how and what to do, I have already tried the round, but it stays the same....
asked by 26.04.2016 / 14:36
1
answer

How to show the value of a variable that is in another page html [closed]

The problem is this: I need to see some values that are updated every 3 seconds in a file that can be .html , .csv , .txt or .css , any extension that can be viewed in the Notepad. It would look like this ./diret...
asked by 20.12.2015 / 20:06
1
answer

Export GridView to CSV in excel / VB.NET file

Following examples found on the web and even in stackoverflow I filled in the btnGerarCSV button that way. Protected Sub btnGerarCSV_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnGerarCSV.Click Dim sb As New String...
asked by 22.09.2015 / 15:22
1
answer

Import CSV files to MySQL workbench

I have a .csv file that contains columns (vertically): Product.1 (line1) Product.2 (line2) But when I do this query : use test; LOAD DATA LOCAL INFILE 'local' INTO TABLE tabela1; It always gives me a warning to say that the att...
asked by 12.06.2015 / 21:29
0
answers

Placing header in CSV file

I have a log generation routine on a customer's page. However, I always have to add a header field in the first row. Here is the function code: public function generateLogPMWeb($action){ session_start('usuario'); $logPMWeb = $_SESSION...
asked by 24.03.2015 / 17:57
0
answers

Read 2 or more csv files

I created a script where the user will send one or more CSV file, it will send and then php should get the name of that file and make some changes (system requirement) and save in the database and delete that file, problem is as follows with 1...
asked by 27.11.2014 / 18:18
2
answers

Remove line from a CSV by position - PHP [duplicate]

Hello. I have a form that generates a CSV file with the data entered by the user. The data saved in this csv is printed on the screen where a number is assigned for each line (1,2,3 ...). I needed the user to delete any line he wanted by that...
asked by 23.08.2018 / 22:22
1
answer

How do I pass values from a CSV to a JSON in Python?

I tried two ways to read a CSV file and pass the values in the JSON value parameter, however, it does not return any results, if I pass the values straight, it works. Code 1: import boto3 from datetime import datetime import csv client = b...
asked by 12.10.2018 / 19:43
1
answer

Read exact columns csv php

I'm reading csv this way: $handle = fopen($file, "r"); while ($data = fgetcsv($handle, 1000, ",")) { if($row !== 0) { $dados = explode(";", $data[0]); $VALOR_1 = utf8_encode($dados[1]...
asked by 14.05.2018 / 14:15