Please help me on below issue.
We have FileWriter Class below having constructor with mentioned parameter (string path, string name, string extension):-
public class FileWriter
{
#region Global Declaration
protected string filePath;
protected string fileName;
protected StreamWriter writer;
protected FileInfo fileInfo;
protected FileStream fileStream;
protected const string newLineSyntax = "\r\n";
protected const int MaxCommentLength = 2000;
#endregion
public FileWriter(string path, string name, string extension)
{
filePath = path;
fileName = name;
fileInfo = new FileInfo(filePath + "\\" + fileName + "." + extension);
fileStream = fileInfo.Create();
writer = new StreamWriter(fileStream);
writer.AutoFlush = true;
}
A K Das.