using System;
using WebApplication1.mdws;
using System.IO;
using System.Text;
namespace WebApplication1
{
public class MdwsDao
{
QuerySvc _svc;
public MdwsDao()
{
_svc = new QuerySvc();
_svc.CookieContainer = new System.Net.CookieContainer();
}
public void connectAsJohn()
{
_svc.visitSite("foo", "523", "523", "SMITH,JOHN", "3050134", "999999999", "");
}
public string[] ddr(string vistaFile, string vistaFields, string flags, string from, string to, string xref)
{
TextArray ta = _svc.ddrLister("230", "", ".01;.02;.03", "IPB", "10", "", "", "", "", "");
foreach (string s in ta.text)
{
Console.WriteLine(s);
}
Console.ReadLine();
return ta.text;
}
}
}
Help! I started two learn C# two days ago as I'm in a crunch to finish a project and of course IT where I work doesn't know a single programming language. Sooo...here's what I know...
The System.IO namespace will have the classes dealing with reading and writing files. http://msdn.microsoft.com/en-us/library/system.io.aspx
Since `ta.text` is a string array, I'm assuming File.WriteAllLines is the most straightforward way to write a string[] to a file. http://msdn.microsoft.com/en-us/library/92e05ft3.aspx
But I can't get it to work no matter what I try...! Can someone show me?