First, really understand the character. Know their personality traits, likes and dislikes. For example, if it's a heroic character, show their brave side in the story. Second, create an engaging plot. It could be a romantic encounter, an adventure together, or solving a mystery. Third, write in a way that makes the reader feel involved. Use second - person perspective ('you') often. Also, pay attention to the details, like the setting and the character's reactions to the reader.
Well, to write a character x reader fanfic, start by researching the character. Read the original source material if possible. Then, think about what kind of relationship you want to build between the character and the reader. Is it a friendship? A love story? Once you have that in mind, outline the story. Don't be afraid to add your own twists. And don't forget to keep the dialogue natural. If the character has a certain way of speaking, mimic that in the fic.