Questions tagged as 'arquivo'

1
answer

How popular is a JTable using a .txt file?

I would like to know how to make a JTable popular using a pre-existing text file. IhaveaquerytableandIwanttheusertoputtheaccountnumber,itshowsthedatainJtableandalsohowcanIdothefilteringbytheagencynumber?Thedatafrommytextfile: link...
asked by 03.05.2015 / 03:44
1
answer

How do I open a password-protected Word document?

I can usually open a .docx file in Word using desktop.open fault of java, but there is a case where I need to open the document that is password protected and Word opens asking for the same. Is there any way I can enter the password still in t...
asked by 06.01.2016 / 22:38
1
answer

How to save text in xml or txt or html file?

I'm developing a C # program and would like to know how to save the text of a RichTextBox in .xml or .html or .txt format.     
asked by 17.08.2015 / 22:16
2
answers

Find file on the server

Good afternoon, I have a PHP file that looks for a txt to get the information and upload it to the SQL database, however this file is generated by the server here in the company (where my machine is already mapped to R: or \ server \ adm)...
asked by 11.05.2015 / 21:19
2
answers

File supposedly being used can not be deleted

I have software that logs logs of errors from it even inside a "logs" folder. Each log file is created with the date of the current day, and is therefore unique to the current day. Example: 30-04-2014.log . I use StreamWriter to log t...
asked by 30.04.2014 / 11:43
4
answers

Check if a file exists on the remote machine via FTP in PHP

How can I check if a file exists on the remote machine using PHP through the functions of FTP in order to act accordingly? <?php $ficheiro = 'public_html/banana.xml'; $id_ligacao = ftp_connect($servidor_ftp); $login = ftp_login($id_li...
asked by 04.03.2014 / 22:17
2
answers

File.Exists and Accentuation

I have a system developed in Webforms (eca!) that checks the existence of an image and then displays it. Everything is working correctly, however, when the image path has accents, the File.Exists method seems to be returning false...
asked by 23.05.2018 / 14:20
1
answer

Open text file in Python package

I'm creating a Python package where one of my programs needs to open a text file to read some information. This file is in the same directory as my source. When I run the program in the interpreter I simply do with open("AtomProva.atp") as f:...
asked by 09.12.2016 / 14:35
1
answer

Is it dangerous to leave mod_mime_magic active in Apache?

I was once arguing with a more experienced programmer than myself (the user @Bacco ) about uploading files. I was commenting with it it did not make sense for someone to try uploading a file with jpg extension having in the content a...
asked by 18.10.2016 / 13:19
1
answer

Reading file in C

I have the following structure for reading each line of a file: fclose(arq); // fecha o arquivo para em seguida abri-lo em modo leitura apenas arq = fopen(url, "r"); if(arq == NULL) { printf("Erro, nao foi possivel abrir o arquivo\n"); } e...
asked by 08.11.2017 / 00:14