Como trabalhar com Texto em C#
Gostaria de saber se em C tem alguma coisa tipo
[color=red:0c9db7507d]TStringList[/color:0c9db7507d] do Delphi pra trabalhar com texto ?
[color=red:0c9db7507d]TStringList[/color:0c9db7507d] do Delphi pra trabalhar com texto ?
Fabiano Góes
Curtidas 0
Respostas
Cvini
27/05/2006
Voce pode usar a classe System.Text.StringBuilder.
GOSTEI 0
Fabiano Góes
27/05/2006
Como criar e Ler arquivo texto com C
em Delphi eu faria
como fazer isso em C ????
em Delphi eu faria
//Criar texto var txt : TStringlist; begin txt := TStringlist.Create; try txt.Add(´Meu Texto´); ... txt.SalveToFile(´c:\arquivo.txt´) finally FreeAndNil( txt ) end; end;
//Criar texto var txt : TStringlist; begin txt := TStringlist.Create; try txt.LoadToFile(´c:\arquivo.txt´) ... finally FreeAndNil( txt ) end; end;
como fazer isso em C ????
GOSTEI 0
Fabiano Góes
27/05/2006
corrigindo o post acima ´|´
//Ler texto var txt : TStringlist; begin txt := TStringlist.Create; try txt.LoadToFile(´c:\arquivo.txt´) ... finally FreeAndNil( txt ) end; end;
GOSTEI 0
Fabiano Góes
27/05/2006
[quote:98160ecd29=´Fabiano Góes´]Como criar e Ler arquivo texto com C
em Delphi eu faria
como fazer isso em C ????[/quote:98160ecd29]
[color=red:98160ecd29][b:98160ecd29][size=18:98160ecd29]Como Fazer isso em C[/size:98160ecd29][/b:98160ecd29][/color:98160ecd29]
em Delphi eu faria
//Criar texto var txt : TStringlist; begin txt := TStringlist.Create; try txt.Add(´Meu Texto´); ... txt.SalveToFile(´c:\arquivo.txt´) finally FreeAndNil( txt ) end; end;
//Ler texto var txt : TStringlist; begin txt := TStringlist.Create; try txt.LoadToFile(´c:\arquivo.txt´) ... finally FreeAndNil( txt ) end; end;
como fazer isso em C ????[/quote:98160ecd29]
[color=red:98160ecd29][b:98160ecd29][size=18:98160ecd29]Como Fazer isso em C[/size:98160ecd29][/b:98160ecd29][/color:98160ecd29]
GOSTEI 0