User Tools

Site Tools


blog:2025-04-11-001

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

blog:2025-04-11-001 [2025/04/11 15:37] (current)
jethro created
Line 1: Line 1:
 +~~NOTOC~~
 +====== 2025-04-11 Append line to the file without line break ======
 +  * Right now i am appending new line to existing file like this:<​sxh c#> ​  using (StreamWriter sw = File.AppendText(TemplateOutput))
 +   {
 +      sw.WriteLine(parsedFile);​
 +   ​}</​sxh>​
 +  * This way AppendText adds automatically a line break to the end of the line. How could i change that so it wouldnt add the line break to the end?
 +===== Sloution =====
 +  * Change the WriteLine call to Write.
 +===== TAGS =====
 +  * 
 +====== ======
 +  * {{counter}} person(s) visited this page until now.
 +  * [[:​memo:​index|Back]]
 +====== ======
 +<​html><​!-- ​
 +PDF for A4-Portrait:​ {{pdfjs 50%,450px > xxx.pdf?​page-fit}}
 +PDF for A4-Landscape:​ {{pdfjs 500px,700px > xxx.pdf?​page-fit}}
 +PDF for iPad Note: {{pdfjs 700px,500px > xxx.pdf?​page-fit}}
 +
 +Youtube: {{youtube>​large:​XXXXX}}
 +Code Highlight: <sxh php; first-line: 70; highlight: [89,92]; title: New title attribute in action>
 +
 +--></​html>​
  
blog/2025-04-11-001.txt · Last modified: 2025/04/11 15:37 by jethro