Questions tagged as 'arquivo'

1
answer

Cache control for a specific file

If we want to implement a cache control for a particular file type, using htaccess we can proceed as follows: <IfModule mod_expires.c> ExpiresActive on ExpiresDefault "access plus 1 month" ExpiresByType application/jav...
asked by 11.11.2014 / 16:56
1
answer

Print special characters in c that are in a .txt file with library locale.h

My college end-of-school program has several screens that print large arquivo.txt , but as I do in C , some characters do not appear, such as ç, é, ã... And so on. I discovered a library called locale.h . With it you can w...
asked by 28.11.2015 / 20:42
2
answers

Adding data to a txt file

I have the following code: $msg = "teste"; $myfile = fopen("lista.txt", "w"); fwrite($myfile, $msg."\n"); fclose($myfile); If I change the value of the variable $msg it opens the file deletes the $msg previous and replaces it...
asked by 08.10.2018 / 21:34
3
answers

Protect secret configuration file

I have a file isolated from others called config.php . It holds information from 3 databases and some sensitive passwords, but necessary for the functioning of the system as a whole. I wanted to protect this file somehow, anyone who acce...
asked by 07.03.2015 / 13:25
2
answers

How to lock an executable file and prevent it from opening in Windows?

I would like to create a private program where I can block programs from running in Windows, I know Windows itself provides something basic about this, but I wanted to create my program, someone give me a code hint that blocks any executable fil...
asked by 13.12.2015 / 18:16
4
answers

how to generate an xml in memory

With the code below, I generate a file and write it somewhere, however, instead of writing to disk, I wanted to generate it in memory, how do I do that? using (var context = new ClassContexto(ClassMaster.conexao())) {...
asked by 19.01.2017 / 17:47
2
answers

How to read a file with Kotlin?

I have a .txt file with some information I would like to read to a string through Kotlin. I am a beginner in the language and would like to know how to read a file with Kotlin.     
asked by 08.08.2017 / 16:12
2
answers

Move file list between folders

I have a method that copies files from one folder to another, deleting the file then. It even caters me perfectly, but I would like to know if there is any way to do this without having to use InputStream and OutputStream , since I...
asked by 30.11.2016 / 13:33
2
answers

Make recursive search in all directories and subdirectories of a given folder

I am developing a script to scan a certain folder to search for certain files and delete them or move them to another folder, according to some rules that have already answered this question and on this other question . My idea was to...
asked by 02.12.2016 / 12:16
3
answers

Problems with "strcpy" locking program

I'm solving an exercise where I have to fill a vector of type struct , and one of the values is char , so I made a while and was using a simple assignment with "=" but was not working , so I did with strcpy but every ti...
asked by 28.08.2015 / 01:49