title: How do I remove the character "ï»¿" from the beginning of a text file in C++?
body: <p>I'm trying to read a text file, and for each word, I will put them into a node of a binary search tree. However, the first character is always read as "ï»¿ + first word". For example, if my first word is "This", then the first word that is inserted into my node is "ï»¿This". I've been searching the forum for a solution to fix it, there was one post asking the same problem in Java, but no one has addressed it in C++. Would anyone help me to fix it ? Thank you.</p>
  
  <p>I came to the a simple solution. I opened the file in Notepad, and saved it as ANSI. After that, the file is reading and passing correctly into the binary search tree</p>