Questions tagged as 'arquivo'

2
answers

What is the best way to save files, Bank or File System?

I have a demand to attach PDFs to my application. Files vary in size from 5 to 200 MB or more. Here comes my question: what is the best option to store? Direct in the database (PostgreSQL) In the file system What are the advantages a...
asked by 14.04.2015 / 15:09
2
answers

Full file path in Python

I'm using the os.listdir() method to return a list of all files, however the return is just the file name and I'd like it to return the absolute path, does anyone know any way? The os.path.abspath() method is not working because...
asked by 19.05.2014 / 04:32
2
answers

Manipulation Directories java / python / c

I have a directory A, and this directory A has several subdirectories, and in each subdirectory, it has a variety of files. I would like to put the all files in a directory in the order they are in subdirectories, any idea how can I do this in j...
asked by 19.02.2014 / 05:01
1
answer

Problem with manipulation of txt files in C ++

I'm developing a C ++ program that should read the keyboard data by storing them with hash , after reading it it should have the save option in its main menu. I can read the save files using hash and everything. The problem is when crea...
asked by 27.10.2016 / 13:25
1
answer

Uploading large or compressed files?

I have a problem uploading files to the server for large files, and an idea was to send some of them in a way that is compressed .zip . Is there any problem in leaving open the upload part for the user to be able to send files of this...
asked by 20.07.2015 / 15:31
1
answer

How not to include the finally and still close IO Streams, Connections, Statements, and other Resources?

We know of the need to close resources (files, connections, also called resources ) consumed in Java, such as OutputStream and InputStream . When we do not close them, we create performance issues and prevent the Garbage Collector...
asked by 28.06.2015 / 17:04
1
answer

Creating files in Haskell

I wanted to record the output of my program straight into a file. When I ran the code, it automatically generated a file with the output of this code instead of printing it on the screen. A simple example: func = do writeFile "file.txt" sh...
asked by 24.07.2014 / 10:34
2
answers

Permutations and files

I'm working on a joke that involves permutations, to create a list of words, in several separate files. Problems start appearing when words with more than 4 letters are required, because the corresponding file becomes too heavy. What I wanted wa...
asked by 14.03.2015 / 10:15
1
answer

How to read from a file and save on variables in Java

I'm having a hard time, because in an exercise of manipulating files in Java, the teacher asked us to create a program that takes the name and note 1 and note 2 of two tests and store in a txt file of the following form: name, note1, nota2 only...
asked by 18.11.2016 / 13:19
1
answer

How to display the contents of a .txt file on the screen?

I am using JFrame to try to display the contents of txt files in a window and then delete the whole file. However, when I put it to display, it deletes the file but does not display on the screen that I created with JFrame . What co...
asked by 10.11.2017 / 20:50