When adding text to a file, I open the file using the method
StreamWriter^ sw = File::AppendText("testworkfile.txt"); Then I start adding information to the file using
sw->WriteLine("ΠΊΠ°ΠΊΠ°Ρ ΡΠΎ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ"); everything is fine except that the method after the last entered line creates another empty line, in the file it looks like this:
ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ | <- ΠΏΡΡΡΠ°Ρ ΡΡΡΠΎΠΊΠ° Please answer the following questions:
- Is it possible to somehow disable the
WriteLine()function to add an empty line? - If not, is it possible to edit the file somehow without full rewriting?