Hi all,
I am trying to grab data from the database that this application is connecting to and then show entries in a treeview.
public void dbcall()
{
SqlConnection sqlconn = new SqlConnection("user id=USERNAME;" + "password=PASSWORD;server=SERVER;" + "database=DBNAME;"...
Thanks, that would be appreciated! I've tried a few ways of messing about with the strings, none of which have either read from the file properly and then written to it properly.
Thanks again.
Here's what I got so far for reading in the text file, the parsing it, then write it back out.
Doesn't quite work though. Any ideas?
Thanks in advance!!
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace StringParse
{
class Program
{...
Just wondering actually... if you can help.
What would be the easiest way to write this back to another file? Using a StreamWriter in the for loop?
Thanks again.
Hi,
I am quite new to C# and I am just wondering if anyone could help me out a little.
Basically if I have a text file and lines like the below:
blah blah blah one blah blah blah blah
blah blah blah two blah blah blah blah
blah blah blah three blah blah blah blah
blah blah blah four blah...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.