How to get full path of StreamWriter

 

In my version of the framework, this seems to work:

string fullPath = ((FileStream)(streamWriter.BaseStream)).Name;

(Found by debugging.)

posted @ 2019-08-12 14:45  ChuckLu  阅读(141)  评论(0编辑  收藏  举报