Geeks With Blogs
Natasa Gavrilovic my Explorations in Coding December 2011 Entries
Reading txt file - code sample
Recently I worked with data temporary stored in a txt file. As the files were not present all the time at the location, the code should first check if a required file exists.Two different ways were used based on other requirements not included here. 1. If more than one file is present, search for the most recent one (in this case, the one that was created today.) docpath = ConfigurationManager.AppSet... filename = "testFile.txt" filescount = System.IO.Directory.GetFile... ......

Posted On Monday, December 5, 2011 4:41 PM

Copyright © Natasa Gavrilovic | Powered by: GeeksWithBlogs.net