EOS-WebAPI/Common/WriteInFile.cs
Nidhi Bhargava d0ac8a7790 Code Commit
2025-09-04 17:30:22 +05:30

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();
}
}
}