29 lines
697 B
C#
29 lines
697 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Configuration;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
namespace VECV_WebApi.Common
|
|
{
|
|
class WriteInFile
|
|
{
|
|
|
|
public void WriteInTextFile(ref TextWriter tw, string StrText)
|
|
{
|
|
////// write a line of text to the file
|
|
//tw = new StreamWriter(path, true);
|
|
tw.WriteLine(StrText + " Current Date Time " + DateTime.Now.ToString(GlobalConstants.DateTimeFormat));
|
|
|
|
////// close the stream
|
|
//tw.Close();
|
|
}
|
|
public void CloseFile(ref TextWriter tw)
|
|
{
|
|
tw.Close();
|
|
}
|
|
}
|
|
} |