Questions tagged as 'arquivo'

2
answers

What is the difference between open and opendir calls on UNIX?

If the opening of files is used the system call open, because there is another system call to open files directory (opendir), if a directory is a file type? Was not it just a call for all file types?     
asked by 31.10.2014 / 05:28
1
answer

Permissions and antivirus issues to run the application

I created an application in Java and generated a .JAR executable, which works perfectly, after that I used Launch4j that makes my .JAR into .EXE and then I used InstallCreator to create an installer for my .EXE application for a more professiona...
asked by 08.07.2014 / 00:06
1
answer

Error writing text file: can not convert std :: string to const char *

I am not able to write a string in file .txt in C ++ (CodeBlocks). // aux é um inteiro // aux2 é uma string // foi dado fopen no arquivo...abaixo só segue a parte com erro aux = x.retorne_energia(); aux2 = x.retorna_nome(); fprint...
asked by 12.06.2014 / 00:00
1
answer

Error to delete the first register with binary code

I found this code on the internet but it has an error: when I register a user and try to delete it, it shows that it has been removed, but when I open the program again it is still there. This error only occurs when you try to delete the fi...
asked by 09.11.2018 / 18:12
3
answers

Problem in download event in "href"

I have a problem where I need to find a file on the server Linux with the value name of <a href> and download it when clicking on the link. The file path is /var/www/html/ligacoes (there are several folders and ther...
asked by 30.01.2014 / 15:04
1
answer

How to look for an element in a vector of structures?

Good evening! I am doing a job in 'C' where I have to look for doctors by specialty, that is, I ask the user the name of the specialty to look for and I make a'printf 'of the doctors of that specialty. I tried to do this but always gives me "Eni...
asked by 22.08.2017 / 00:00
0
answers

What is the most correct way to store files [duplicate]

I always stumble upon this doubt when I have to work with file storage within software. Is it ideal that I simply burn them to a folder and save the information in the database, with a field pointing to the path where the file is located?...
asked by 17.08.2017 / 15:26
2
answers

File reading problems

Last week I did a question about reading a "giant" string . Thanks to the help of the staff here I was able to implement the function. Now, I've come up with a new problem. The file reading is not running correctly. The program is not readin...
asked by 18.09.2017 / 02:14
1
answer

nome.exe has stopped working. I can not fix this [duplicate]

My code in C gives a crash displaying the following error:    name.exe stopped working I do not know how to fix this. Here is the code I've already done: #include <stdio.h> #include <string.h> #include <stdlib.h>...
asked by 10.07.2016 / 04:34
2
answers

Return a similar value from path

No result in this post , I would like to know how it would be used the Directory.GetFiles function, to list the files and folders within it without showing the full path. Ex: public List Listar(String a){ return Directory.GetFile...
asked by 13.10.2015 / 22:38