Questions tagged as 'arquivo'

1
answer

How to generate Array-Adjacent of a BFS from a txt file? C ++

I'm using CodeBlocks. I have a .txt file that represents a maze, everything that is after : are rooms: Thefirstlineofthefileshowsthestartcoordinate,whichinthiscaseisAS.Everyletterwrepresentsawall.SomyBFShasastheinitialnode(orinitialro...
asked by 10.01.2016 / 15:43
1
answer

How can I change the appearance and behavior of the "Open" and "Cancel" buttons in JFileChooser?

Good folks, I'm trying to use JFileChooser to select directories and also files. What I'm using so far is public void buscaFile() { File[] diretorio = null; diretorio = selectDir(); if(diretorio != null) { for(File i : dire...
asked by 18.09.2015 / 01:28
1
answer

How to check if a file is corrupted in C #?

How to check if a file is corrupted in C #? Ex: I have a "xpto.txt" file in a directory and need to verify that the file is not corrupted.     
asked by 14.05.2015 / 22:36
1
answer

How to convert HTML code to a PDF file in java?

I'm developing an application where I need to convert an HTML code, which is saved in the database, to a .PDF file. There is no need to save this file to the server. I've never done anything similar. How to do this using Java?     
asked by 09.08.2015 / 05:29
2
answers

How to pass names of a file to a DataGridView using FolderBrowserDialog?

How do I pass the name of the files that were found inside the selected folder? So far I've only been able to get him to get the file's path and move on to DataGridView and now I want to make him pass the name too. Here's the code p...
asked by 15.12.2014 / 15:28
2
answers

Use a variable as the name of a file in C

I'm using the system("pathping xxx.xxx.xxx > c:\i.txt") function to leave the program running pathping tests and saving the result to a file to analyze later. Basically I wanted to play this function inside an infinite loop...
asked by 08.12.2016 / 18:57
0
answers

Application in C Client-server for file transfer with TCP socket and thread [closed]

I would like to ask the forum help to make safe (encrypt) the transfer of a file between two computers. Below is the C source code of a client-server application for file transfer using TCP socket but without encryption of the transferred data....
asked by 25.11.2015 / 20:14
1
answer

List directory over the network

I'm using the code below to read files: Locally it works, but when I put the $ dir variable with a network path, as below, I get error: $dir = "W:/_Infraestrutura/Controles/Inventario de Equipamentos/ " ; $pasta= opendir($dir); echo "&...
asked by 25.09.2015 / 20:57
2
answers

Getting the full path of a client file in ASP.NET

On the server side, is it possible to get full path of a file sent by a client using the <input type="file"> tag? For example, if the user sends the file C:\Users\Documents\a.txt , does the server get the string C:\Users...
asked by 13.05.2014 / 22:03
2
answers

Deleted file deletion in C #

I'm using the following line to create and write: File.WriteAllText(caminho + cliente, xml); In it I record an XML and then I treat it as follows: if (File.Exists(caminho + cliente)) { XmlTextReader xmlLer = ne...
asked by 06.10.2016 / 22:05