Skip to content
Advertisement

Simple keylogger “Problem in logging to a file”

Problem :

Logging file saves one char after another in a new line for each char.

Objective is to log all char in a same line

is there is a problem with format in logging or ?

Code

JavaScript

Result: logging

–>In File.txt

l

o

g

g

i

n

g

Expected Result

logging

–>In File.txt

logging

Like this output is needed

what kind of format this requires?

Advertisement

Answer

This function is to capture a word/sentence

JavaScript

using this function

JavaScript

Result logging

–>File.txt

JavaScript

This way is better or any other way for it?

small help would be appreciated!.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement