Yes, it will not link go to file2.html#, since it is not an actual link. Using the # symbol shouldn't cause any SEO problems for you.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.