Author: ruud00000 | Posted on: 1/19/2010 4:26:26 PM | Views : 293

(VB 2008)
 I fill a string with lines of text, then in the end write it at once to a textfile with method File.WriteAllText(), but something goes wrong there: theChr(13) before the last line (and the last line only) is NOTwritten to file (variable name: antwoordbestand), in procedure form1_Unload, although it IS written correctly to the string (antwoordenlijstVeld.Text)??
Bug? How to solve?
 
Imports System Imports System.IO Imports System.Text Partial Class _Default Inherits System.Web.UI.Page Dim path As String = "C:\inetpub\wwwroot\Questionnaire\vragenlijst.txt" Dim fs As FileStream = File.OpenRead(path) Dim vragenlijst As Array = File.ReadAllLines(path) Dim instance As Array Dim dimension As Integer Dim aantalVragen As Integer = vragenlijst.GetLength(dimension) Dim antwoordenlijst As Array Public Shared antwoordbestand As String = "& ...

Go to the complete details ...