Linux system use as the service of game,the automatic copy and the recoding of chatting is not complete.When it met cross with Chinese characters,it stopped !
char ch ;
while ((ch = fgetc (fp ))> 0 )
{
//code to write backup file
// printf (“ %c ” ,ch );
}
Steps to Reproduce
Use some medias like this one to determinate the end of the document, it will deterimined that the article stops when it come across Chinese characters. char ch; while ( (ch = fgetc(fp) ) > 0 ) { //code to write backup file // printf( “%c” , ch ) ; }
Use some medias like this one to determinate the end of the document, it will deterimined that the article stops when it come across Chinese characters. char ch; while ( (ch = fgetc(fp) ) > 0 ) { //code to write backup file // printf( “%c” , ch ) ; }
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now