Category: Program

shape
shape
shape
shape
shape
shape
shape
shape
Standard

Deleting Files in C

In this short post, I’ll show you how to delete a file using the C language. To delete a file we use the delete(“file_name”) function. In the example below, the program will delete the file masterdaweb.txt: #include int main() { delete(“masterdaweb.txt”); return 0; }

Standard

Files in C – Functions and Operations on Files

In this article we’ll talk about operating file functions in C, opening a file, closing a file, the getw and putw functions, the fprintf and fscanf functions, random access to files and the fseek function. Functions for operating files: Function Operation fopen() Create a new file Open an existing file fclose() Closes a file in

Standard

C Switch Case – How to use

You will learn how to use the switch command in C to execute a block of code based on a multiple choice selection. Below is an example of a MENU using the switch command: switch (menu) { case 1: printf(“Voce escolheu a opcao 1”); break; case 2: printf(“Voce escolheu a opcao 2”); break; default: printf(“Voce

Standard

PHP: How to Create and Read Cookies

Cookies are data exchanged between the browser and the server, used to store user preferences, login and so on.   How to create a Cookie in PHP? // Criando Cookies $nome = “masterdaweb”; $valor = “Cookie Criado com Sucesso”; $expira = time() + 3600; setcookie($nome, $valor, $expira); $name – Cookie name. $value – The value

Latest news

Latest news directly from our blog.