Questions tagged as 'arquivo'

2
answers

How to create a list and put other lists in?

def annexsentence(): nome_tarefa=input("Nome da Tarefa :") data_atual = datetime.datetime.now().strftime("%d-%m-%y") data_final=input("Data Final :") estado="Aberta" lista=[nome_tarefa,str(data_atual),str(d...
asked by 01.01.2019 / 22:01
2
answers

How to know the number of files in a folder using Java?

In short, given a path that is a system folder, the return is the amount of files directly in the root of the folder (you should not consider files in subfolders). This would be used in an iteration with for to access the files to do a "parse" (...
asked by 16.10.2016 / 05:29
2
answers

How to create a folder with the current date name

I'm trying to create a folder with the name equal to the current date but it just does not create. import java.util.*; import java.io.File; public class PastaData { Date data = new Date(); SimpleDateFormat formatar = new SimpleDateFormat("d...
asked by 03.11.2016 / 22:56
2
answers

Generate text file from an application console application

I need to tailor this method of an application Windows Forms link to Console Application , that is, instead of using the object saveFileDialog.ShowDialog() I have to create the file using another method of class Stream...
asked by 10.03.2016 / 01:41
2
answers

How to read numbers from a txt file in C #? [closed]

This is an example file: 2 0.03159527 0.1990048 0.9794891 0.02173799 0.9969404 0.07508247 The first number indicates how many lines are, for each line there are always three numbers I tried to do something like this: Vector3[] Load...
asked by 21.07.2017 / 22:40
1
answer

How to write in a file without erasing old things?

Example: in my file you have joao maria carla If I use: arq = open('nomes.txt') arq.write('jose') arq.write('\n') arq.close It will delete the previous ones that was joao, maria, how do I write without deleting the previous txt?     
asked by 28.04.2017 / 17:40
2
answers

How to save software versioning with GIT?

I made the project, it's all the versioning in the GIT , however how can I make a kind of backup of this data? Why do we assume that I format the PC, saved the project but lost the versioning done. I researched and said to save the invisi...
asked by 08.04.2016 / 22:36
3
answers

Remove spaces from a text file

How do I remove spaces from a text file? I have the following text file: LC1 00019 1 31012012 00001 00243206 I uploaded and put the following code: $abrirArquivo = fopen($uploadArquivo, "r"); wh...
asked by 15.10.2015 / 22:30
2
answers

Capture file name

I have a form that I look for the path of a file in .mdb (Access database), however I wanted to know how I can limit and exactly get the string of the file between the last bar of OpenFileDialog and the point of .mdb . S...
asked by 01.08.2016 / 15:26
1
answer

Read file when directory exists

I am building an application that reads a file in a certain directory, however this file will be generated in this directory at different times from another application, after the application consumes and processes the data the file is deleted,...
asked by 10.12.2015 / 23:24