Questions tagged as 'arquivo'

1
answer

Problem reading file

I am writing a code in C ++ and need to read a distance file that was calculated in another algorithm done in C . This file looks something like this: 100 \ n (natural number) 0.0000 58.25646 7.1556 5.1564 0.0000 44.00000 ... - > an...
asked by 30.09.2016 / 03:14
1
answer

IO Error Exception when trying to manipulate a file

I've already compiled and run the program in NetBeans and it works normally, but when I run it through the terminal it always gives the IO Exception error. Is there any other way to read files without this error occurring? My function to read...
asked by 15.10.2016 / 16:31
1
answer

How to upload file via ajax with Rails 4?

I want to download a pdf file to process on my controller and then return it as it gets rendered in the backend , I would like a loading bar or circle to appear. However, I'm having trouble sending the file asynchronously. How do I send an asyn...
asked by 02.08.2016 / 06:03
1
answer

Get some of the contents of the SVG ID with PHP

I have a file SVG and it has several paths with the tag and inside the tag has the id attribute that in turn has the name of the state and also the municipality (which is what I need to get). I would like to get this municipa...
asked by 06.08.2016 / 17:34
1
answer

Is reading files in Python updated in real time?

I'm developing an application where I'll create a multithreading that will read a .json file and based on a key of this file ( status: 'pending' or status: 'completed' ) I'm going to perform an action or not. The idea is t...
asked by 10.02.2016 / 12:36
1
answer

Update .csv file when edited in Java

I have a .csv file that contains information, but when I remove information (in this case contacts) from the console output the .csv file is not being updated. How to solve? private void insertContact(String contactName) { contacts...
asked by 04.11.2015 / 18:00
2
answers

How to get a string arraylist value, for an array of File

I have a job to do, to do it, I need to pass an information from an array composed of strings (which are the paths) to an array of files so that I can read those paths, value directly in these two ways leitura.add(System.out.println(Arrays.toS...
asked by 03.11.2015 / 02:56
1
answer

Erase specific line of a text file

I need to delete the last line of a text file. It stores the user's coordinates for each line, but when the user requests a ctrl + z , I need to delete the last line. How can I do this?     
asked by 25.04.2015 / 10:22
2
answers

Put pointer on the second line to write?

Writing a text in the file $fn = fopen('teste.txt', 'a'); fwrite($fn, '-meu texto aqui'); fclose($fn); Reading the second line of the file $fn = "teste.txt"; $nr_linha = 1; $f_contents = file ($fn); @$sua_linha...
asked by 28.12.2014 / 17:26
1
answer

Stream corrupts when being saved

I have the algorithm that simulates a type of register, but when I save the file the fields, street, city and state are lost, they simply disappear, and as I am saving it it corrupts the file already at the time of writing. I can not figure out...
asked by 26.11.2014 / 04:55