Skip to content

Commit

Permalink
filename fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bujocek committed Aug 6, 2014
1 parent c83d510 commit a069f1a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions LyncIMLocalHistory/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ static void InstantMessageModality_InstantMessageReceived(object sender, Microso
continue;
String directory = mydocpath + @"\LyncIMHistory\" + participant.Contact.GetContactInformation(ContactInformationType.DisplayName);
if (!Directory.Exists(directory))
Directory.CreateDirectory(directory);
String filename = directory + @"\" + now.ToShortDateString() + ".txt";
Directory.CreateDirectory(directory);
string dateString = now.Day + "-" + now.Month + "-" + now.Year;
String filename = directory + @"\" + dateString + ".txt";
//Console.WriteLine(filename);
using (StreamWriter partfile = new StreamWriter(filename, true))
{
partfile.WriteLine(convlog);
Expand Down

0 comments on commit a069f1a

Please sign in to comment.