W
W
Whomai2018-04-06 18:36:26
C++ / C#
Whomai, 2018-04-06 18:36:26

In what encode is written in .txt?

Here is the code.

#include <stdio.h> 
#include "encrypt.h" 
 
int main() 
{ 
 FILE *in=fopen("SecrtetMessage.txt","r"); 
 FILE *file=fopen("UnSecrtetMessage.txt","w"); 
 char msg[250]; 
 while (fgets(msg,250,in)) 
 { 
  encrypt(msg); 
  printf(file,"%s",msg); 
  getchar(); 
 } 
 return 0; 
}

In what format are characters written to UnSecretMessage.txt? And how to change it, if possible.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2018-04-07
@res2001

What is in msg will be written to the file, without any recoding.
If you need it differently - recode it yourself. If you need to change the character encoding, you can use libraries or built-in API functions.
PS: encode?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question