Tell me how to get a string from v8 :: local & lt; v8 :: value & gt; User = info [0];
Using NAn so that you can open the ifstream NTUER file ("/ home / banger / s / users /" + user- & gt; Tostring () + "/ NTUXER. DAT ");
Answer 1, Authority 100%
I found the solution of the problem (the code has already used another little), maybe someone will come in handy (I received a string from the information received in info, and then everything is clear:
Void Check (Const Nan :: FunctionCallBackInfo & LT; V8 :: Value & gt; & amp; info) {
V8 :: String :: UTF8VALUE UserName (Info [0] - & gt; tostring ());
STD :: STRING PATH = "/ HOME / BANGER / C / USERS /" + STD :: STRING (* UserName) + "/ntuser.dat";
// STD :: STRING RESPONSE = "/ HOME / BANGER / C / USERS /" + NAME + "/NTUXER.DAT";
ifstream ntuser (PATH);
if (ntuser.is_open ()) {
info.getreturnvalue (). SET (TRUE);
} else {
info.getreturnvalue (). SET (FALSE);
}
}