File Name

static string getFileName(string file) { size_t last_slash, last_point; last_slash = file.find_last_of("\\"); last_point = file.find_last_of("."); return file.substr(last_slash + 1, last_point - last_slash - 1); }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.