isfileopen
-
Hi Friends I want to write some data to a text file. How can I know file is already been used by other process ? Thanking you, Laxmikant
-
Hi Friends I want to write some data to a text file. How can I know file is already been used by other process ? Thanking you, Laxmikant
-
Hi Friends I want to write some data to a text file. How can I know file is already been used by other process ? Thanking you, Laxmikant
use Path.GEtTempFile to get a unique filename. The only way I know to know if a file is in use, is to use a try/catch block when trying to access it. Why are you writing text files on your server ? If you have many users, perhaps a database is a better place for it ?
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )