RE: Files

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: cashdeskmac (cashdeskmac_at_discussions.microsoft.com)
Date: 09/20/04


Date: Mon, 20 Sep 2004 11:59:02 -0700

I agree with Nicholas. If you are using a Windows-based application rather
than a console application, add an XML file to your project, then a datagrid
to your form. You could also just add a text file to the project and set the
path as :
string path = @..\\..\\TheNameOfYourFile.txt";

 

"Xarky" wrote:

> Hi,
>
> I need to store string data in a file, basically name and surname.
> I was going to work by the use of a textfile, where on each line I
> would have first the name and then the surname seperated by a ;.
>
> Can this be done in some other way, to be more efficient, both for
> reading, writing and editing.
>
>
> Thanks in Advance
>