Questions tagged as 'arquivo'

0
answers

How to read a .csv file in C?

I created this code in C where I inserted the coordinates of some points and with SVG I drew these points in the space connected by lines. all saved in an .html file to run in the browser. It's like a route scheme where I want to calculate betwe...
asked by 06.05.2017 / 03:12
1
answer

Read from a txt file using fscanf using vector

I have the following while(!feof(f)){ (*ptr).push_back(carro()); fscanf (f, "%d", (*ptr)[add].id); fscanf (f, "%s", (*ptr)[add].marca); add++; } Where * ptr is & vector, a vector of a struct car, I have alrea...
asked by 16.03.2017 / 21:24
1
answer

Problem reading binary files!

I'm making a method for a code in C that adds an addition to the value of all books written to a binary file, however ... when I have more than 2 records, all on, ie the record 3,4 , 5 ... are rewritten with registry values 2 can someone help me...
asked by 13.03.2017 / 15:37
0
answers

Create / Edit file (txt) on Android

Hello ... sorry if I posted in the wrong place or wrongly, because I am new to the forum (although I always read it). Lollipop helped me a lot with the explanation: link But I have 3 doubts: If I want to keep the data contained in th...
asked by 08.03.2017 / 02:28
0
answers

How to create file on my PC, inside an internal network, using PHP

I'm developing software for the company that I work with and I've had a problem: I need to create a file inside my PC that is saved using any other computer on the company's internal network. Before I had made it to work on my machine. Then I us...
asked by 10.03.2017 / 19:06
2
answers

How to delete the last line of a text file in the C language

Well, I'm wondering how I should delete the last line of a file using the C language. Could anyone help me please. Below, follow my code. int quantidadeDeUsuarios = 0; Usuario *_usuario; void sair() { free(_usuario); } void removerU...
asked by 25.02.2017 / 21:10
1
answer

write text to file

I'm using this code to write to the file: try(BufferedWriter bw = Files.newBufferedWriter(caminho, formato)){ bw.write("frase teste\n"); bw.write("outra coisa"); }catch(IOException e) { e.printStac...
asked by 06.01.2017 / 01:07
1
answer

Retrieving images from the database using PHP + MYSQL

I need to load images from a MySql database using PHP, and then put inside a tag in HTML, I am not getting using this code: $con = mysqli_connect("localhost","roberto","",""); $query = ("select imagem from FOTOS_PRODUTOS where id = 1"); $image...
asked by 18.11.2016 / 16:31
1
answer

Make append in a specific line of a text file

Good morning, I have a function that makes an append in a certain line of my xml file. function addInFile($file, $lineNumber, $content) { $fileTemp = "$file.bak"; $currentLine = 0; $fpRead = fopen($file, 'r'); $fpWrite = fopen...
asked by 03.10.2016 / 15:47
1
answer

Save txt file with windows encoding

My application runs on a Unix OS, so my .TXT files are created in UNIX format, I need these files to be created in WINDOWS format. I need line breaks to be in WINDOWS format \ r \ n. I'm having trouble with UNIX format because it only...
asked by 30.08.2016 / 22:17