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...
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...
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...
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...
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...
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()))
{...
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.
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...
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...
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...