Italian Cr Lf

micro

Well-Known Member
Licensed User
Salve ragazzi,
come mai quando salvo dei dati di una textbox con FileWrite mi aggiunge un Cr e Lf alla fine?

Bye
 

klaus

Expert
Licensed User
This is a normal behaviour of FileWrite, Cr Lf indicates the end of the written line.
When you have
Var=TextBox1.Text
save it with FileWrite(c1,Var),
and you read it back with Var=FileRead(c1), Cr Lf will NOT be added to the variable Var.

Best regards.
 

micro

Well-Known Member
Licensed User
certainly, but only with FileRead because with FileReadToEnd also if you use a variable the Cr and Lf is added.


Thanks
Best Regards
 
Top