Re: to read a textfile regarding his format



I copied and paste this char(é,à,è) in the notepad and
save it as UTF8 encoding.
then i tried the code below and i have no problem.
dim sr as new streamreader(filename,true)
and
Dim myStreamReader As New System.IO.StreamReader(objFile.FullName,
System.Text.Encoding.UTF8, False)

please check your textfile.

.



Relevant Pages

  • Re: Read from a Notepad.
    ... >the text in a notepad like window that is refreshing all the time. ... Public Declare Function FindWindowEx Lib "user32" Alias _ ... Dim hwndNP As Long, hwndEdit As Long ...
    (microsoft.public.vb.winapi)
  • Re: System.IO.File.Copy + NTFS Streams + special ACLs
    ... exception is documented as "An I/O error has occurred." ... Dim sw As New FileStream ... I used notepad to create the AFS1.TXT file and the meta stream ... Then I ran the above applet to copy the file to afs2.txt, and tested to see if the the meta stream was copied as well: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Close almost all files/programs?
    ... I copied the script into Notepad, saved it as a .vbs file and ... The script is running, ... You then go through the list, and terminate the ones you ... Dim oWMI, Process ' as objects ...
    (microsoft.public.scripting.vbscript)
  • Re: File handling in VB
    ... Dim oRead As System.IO.StreamReader ... Dim LineIn As String ... We have a notepad which consists of some data. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: xl copy cell content to NotePad
    ... Dim s As String, s1 As String ... path and extension ... copy content of A1 in to Notepad ...
    (microsoft.public.excel.programming)