Questions tagged as 'arquivo'

1
answer

How to close a file in Java?

I'm trying to delete a file using File , but I get the following error:    The file is already being used by another process. I also get this error when trying to rename using Files . How can I "close" a file in Java and th...
asked by 26.12.2016 / 14:56
1
answer

Creating a txt file from another txt file

I have a file in this format (zero indicates the line has finished): -1 2 0 -2 3 0 $ -1 3 0 What do I do to identify if the file line has a $ ? Because I have to implement this conditional to perform the exchange of numbers signals, t...
asked by 30.08.2016 / 01:02
1
answer

Error writing stream file

   The stream was not writable You receive this exception when you try to change a file that is in resource . Here is the code: var assembly = Assembly.GetExecutingAssembly(); Stream str = assembly.GetManifestResourceStream("PCCLC...
asked by 07.06.2016 / 22:04
1
answer

Segmentation fault function fgets

I'm having a segmentation fault problem opening txt files. I know for handling strings , higher level links, however I can not learn now, so I'm using C . My problem is to read a list with four thousand files name, whos...
asked by 26.01.2016 / 18:16
1
answer

Convert BufferedImage to File?

I need to convert a BufferedImage to a File . I tried the following, but it did not work: File file = null; ImageIO.write(image, "jpg", file); image is of type BufferedImage . That was the error:    Exception...
asked by 03.12.2015 / 21:10
1
answer

Concatenate string with integer vector and write to file?

I have a dynamic integer vector. For example: 1 2 4 6 8 9 10 I want to attach it to a string, like this, for example: [B]: And write this to a file line, then read the file with the following output, for example, assuming the program...
asked by 05.12.2015 / 21:45
1
answer

.ini file reading

Is it possible to do variable readings in arquivos.ini with C ++? Ex: host = "localhost" name = "username" pass = "password" port = 1010 When reading from this file I set it to ifstream . ifstream dados; dados.open("arquiv...
asked by 31.08.2015 / 22:58
1
answer

Alternative to database in PHP?

I want to know if there's a way to save form data, display it, and edit it without using a database? Because whenever a software will do integration with database I stop because I do not understand database very well yet. I was thinking of doing...
asked by 23.08.2015 / 06:43
2
answers

android file monitor

I need to develop an android application where it works by monitoring a certain directory with a certain periodicity and sending new files from that directory to an FTP or other folder on the local network that the device is connected to. Eg Eve...
asked by 05.08.2015 / 14:04
1
answer

Error reading binary file

I'm trying to read a binary (digital biometric) file that the user selects himself. But it is not returning anything. What's wrong? Follow the code below: var fileInput = document.getElementById('fileInput'); var file = fileInput.files[0...
asked by 17.05.2015 / 18:21