Write SQL info to a TXT file
问题 Im trying to read a row of information from a DB and write that out to a txt file. I have most of it figured out, but I get the following error "A field initializer cannot reference the non-static field, method, or property 'reader_writer.filewriter.filePath'" and I dont know why. Can someone please explain my problem? using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Data.SqlClient; using System.Data.Common; namespace reader