\r\n\r\n
Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET File I/O and Registry > Strange chars in textfile


\r\n \r\n
 
 
Thread Tools Display Modes

\r\n\r\n\r\n
Hello,
\r\n
\r\nI write one line of text to a file and when I looked into the file I see three chars which I did not write
\r\nI see this :
\r\n"D:\\.......
\r\nWhere are this chars from?
\r\nDo I something wrong
\r\n
\r\nRegards
\r\n
\r\nMans
\r\n
\r\n wFile = My.Computer.FileSystem.OpenTextFileWriter("c:\\mans.cmd", False)
\r\n wFile.Write(Chr(34) & PrjSets.ApplicationPath & PlotExpPdfs & Chr(34) & " " & Chr(34) & ExpeditionWindowName & Chr(34) & " " & PrjSets.ProjPath & _
\r\n " " & PrjSets.Projectname & " " & "Temp")
\r\n wFile.Close()
\r\n \r\n\r\n
\r\n \r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n
\r\n \r\n \r\n \r\n \r\n Reply With Quote\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n'; pd[1374770] = '\r\n\r\n \r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n
\r\n
\r\n  \r\n #2  \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n Old\r\n \r\n 11-29-2010, 05:13 AM\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
snarfblam\'s Avatar\r\n\r\n
\r\n \r\n snarfblam\r\n snarfblam is offline\r\n\r\n\r\n
Prev Previous Post   Next Post Next
  #1  
Old 11-29-2010, 04:19 AM
Pcbmans Pcbmans is offline
Newcomer
 
Join Date: Jul 2010
Location: Breda
Posts: 10
Default Strange chars in textfile


Hello,

I write one line of text to a file and when I looked into the file I see three chars which I did not write
I see this :
"D:\.......
Where are this chars from?
Do I something wrong

Regards

Mans

wFile = My.Computer.FileSystem.OpenTextFileWriter("c:\mans.cmd", False)
wFile.Write(Chr(34) & PrjSets.ApplicationPath & PlotExpPdfs & Chr(34) & " " & Chr(34) & ExpeditionWindowName & Chr(34) & " " & PrjSets.ProjPath & _
" " & PrjSets.Projectname & " " & "Temp")
wFile.Close()
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->