Posts by Nardier Barbosa • 37 points
4 posts
-
0
votes2
answers3609
viewsQ: "The process cannot access the file because it is being used by another process"
I have a class that retrieves database data and stores it in a D.Reader, and write each record in a text file, in this method: public void Escreve_Arquivos_Txt() { string folder =…
-
0
votes4
answers487
viewsA: Fill a datatable from a txt
The solution was that way. public DataTable ConverteArquivoTextoParaDataTable(string ArquivoTxt) { dataTable = new DataTable(); dataTable.Columns.Add("Coluna1", typeof(String));…
-
0
votes4
answers487
viewsQ: Fill a datatable from a txt
I have a datareader writing directly into the text file, int count = dataReader.FieldCount; while (dataReader.Read()) { for (int i = 0; i < count; i++) { file.WriteLine(dataReader.GetValue(i)); }…
-
3
votes1
answer568
viewsQ: Access a C# thread-based method object with Winforms
I created a thread to run a process that takes too long and makes the application process stop for a great while private void ExeConsultaClientes() { thread = new Thread(new…