Questions tagged as 'arquivo'

0
answers

Exception while deleting directory using FileUtils.deleteDirectory

The directory has 6 files inside it. The exception that occurs is java.io.IOException: Unable to delete file: tmp \ umDosArquivos. Manually, I can delete all files and directory. I used the canWrite method of File to see if there was any lock, b...
asked by 19.03.2015 / 12:39
1
answer

Save list to file

I have an exercise that makes a list of trucks, cities, loads through a list, but I can not save a file (it's the last function) when I select the save option (# 7), it closes the program. What am I missing? My code: #include <stdio.h...
asked by 05.03.2017 / 18:07
1
answer

How to list all files in a folder using Python?

I'm building a program that needs to know the files in the working directory of it. So I typed the following code. def encontrar_arq(cadena, caminho): encontrado = False # lista_arq = ls(caminho) #funcao que lista todos os arquivos do ca...
asked by 19.09.2016 / 05:23
2
answers

Error adding library using Linux

I'm just trying to compile examples from the book and get fatal error: No such file or directory when trying to include conio.h, io.h and curses .h . I read in the SOen and it was suggested just this < i> curses.h , which I get error....
asked by 12.01.2016 / 23:01
4
answers

How to save form image directory to bank

In the system I'm developing it has a form with a field where the user can attach an image. After saving the form, the user wants to view the record including the image, so I thought about saving the image to a folder on the system and its di...
asked by 16.08.2018 / 15:50
4
answers

Get the contents of the last line of a file in Java

I need to retrieve from a file always the last line written. I know one way to do this would be: import java.io.FileInputStream; import java.io.InputStreamReader; import java.io.LineNumberReader; public class LineReader { public static voi...
asked by 08.10.2017 / 19:12
1
answer

Delete files by extension

How can I delete files from one folder per extension? "I got" the files with this code: string[] arquivos = Directory.GetFiles(st.path, "*.xml", SearchOption.AllDirectories); But I do not know how to delete     
asked by 14.11.2017 / 17:57
2
answers

How to convert text in file to number with decimal places?

I have this data written in the text file "000001010" (it only has this data), but I wanted it when it was for the variable to be 10.10. I'm reading the data from the file like this: var linhas = System.IO.File.ReadAllLines(@"C:\teste\pedro...
asked by 23.10.2017 / 17:04
2
answers

How can I count the number of files in a folder with PHP?

In PHP, what is the fastest and most efficient way to read the amount of files present in a given directory. For example, I want the demo below to return 3 . pasta/ index.php dev.php .htaccess outra_pasta/ I mean, I...
asked by 23.09.2015 / 13:30
2
answers

Write and retrieve information in files

How do I write data to a file and then retrieve it? I have an enrollment system. Start a folder in Windows and within it I generate the registrations sequentially. I finish and go home and the next day, I will generate new set of registrati...
asked by 21.07.2015 / 13:53