Help!
Wednesday, 18 October 2017
Home arrow FAQs arrow General arrow I need to read/write files. How do I find the correct path for my site?

Support
Server Information
Moving your Website
Admin Flash Tutorials
Reseller Flash Tutorials
Hsphere Users Guide
SiteStudio Users Guide
I need to read/write files. How do I find the correct path for my site?

The correct way to do this would be using Server.MapPath. This would map the virtual path to a physical location on the disk. Ex. If you have a file in your root web called visitor.txt and you use Server.MapPath("/visitor.txt") and the physical path to you root web was "D:\mshome\username\yourweb" then it would return: "D:\mshome\username\yourweb\visitor.txt" If you use this method you should never have to worry about the physical paths.


Top!