Questions tagged as 'arquivo'

3
answers

C File Registration

How to tell if there is a record (struct) saved in some position in a file in C? For struct : typedef struct Registro { int chave; char caracteres[20]; int idade; int prox; bool contem; } Registro; For exam...
asked by 15.05.2014 / 21:50
2
answers

C - How can I read data from a file (Given that I use structures for it)

Good evening. I am developing a project for the Faculty in C, where I have a data structure to work with data common to "Offenders", or those who have committed an infraction. typedef struct Infractores { int ordemdeEntrada;//ordem de e...
asked by 27.05.2015 / 00:35
2
answers

Excel / VBA file more than doubles for no apparent reason when it is saved

I'm working with Excel and using some of the VBA programming features via modules (without using forms), and a problem has occurred, the file currently has 8MB and I continually save with another name, at a minimum, indicating new release...
asked by 05.04.2017 / 15:08
1
answer

What is a .lock file?

I'm using git to version a project and I noticed when checking for modifications that some .json files have a file with the same name but with different extensions and content. Example: composer.lock , yarn.lock . What are they? What...
asked by 08.02.2017 / 00:36
1
answer

Python - Open multiple files in a For

Someone, please, could you help me explain why I can not add the texts of each file in each position of my list? ''' Funções para o processamento dos textos (cartas) para base de aprendizagem''' PATH_LETTERS = 'resources/letters/' MODE_OPEN =...
asked by 01.11.2017 / 21:45
1
answer

How to save a model with FileField using a preexisting file?

I'm importing a set of pre-existing Django files, and I'd like to reference them in my templates (which use FileField or ImageField ). For example, one of my templates looks like this: class Imagem(models.Model): arquivo = Ima...
asked by 04.01.2018 / 15:02
1
answer

Open files, passing variable as filename

I have the following situation, a file "tables.txt" where I have around 2000 lines with filenames which I want to pass line by line taking the name of the files and checking which ones exist and which do not. The problem occurs when after get...
asked by 27.07.2016 / 13:36
2
answers

Read the last 5 lines of a file via Python

I asked this question here in Stackoverlow View the last 5 lines of a file with PHP? Now I would like to know how I could do the same thing in Python. How could I get the last 5 lines of a large file, without having to fully load it into...
asked by 03.09.2015 / 22:59
1
answer

Delete files created before 10 days ago from the current date

I'm trying to automate the deletion of some backup files that a small application I've made in swing creates, which over time will accumulate, taking up too much space in the network directory, which already has a storage limit. The list of file...
asked by 20.06.2016 / 17:38
1
answer

How to receive the input data of a program in C from a file?

I have a program in C. Let's assume its compiled name is a.out (default). When I use the following command to execute it ... ./a.out < arquivo.txt ... how do I read the content of arquivo.txt within the program (in funct...
asked by 06.04.2015 / 14:49