Click here to Skip to main content
15,898,134 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: help Pin
Christian Graus20-Aug-07 12:17
protectorChristian Graus20-Aug-07 12:17 
QuestionHelp with aScheduling grid/Table Pin
Mr Oizo20-Aug-07 2:07
Mr Oizo20-Aug-07 2:07 
AnswerRe: Help with aScheduling grid/Table Pin
Johan Hakkesteegt31-Aug-07 3:01
Johan Hakkesteegt31-Aug-07 3:01 
QuestionHow to write to new line using streamwriter. Pin
rahul.net1120-Aug-07 1:49
rahul.net1120-Aug-07 1:49 
AnswerRe: How to write to new line using streamwriter. Pin
Rami Said Abd Alhalim20-Aug-07 2:21
Rami Said Abd Alhalim20-Aug-07 2:21 
GeneralRe: How to write to new line using streamwriter. Pin
Rami Said Abd Alhalim20-Aug-07 2:25
Rami Said Abd Alhalim20-Aug-07 2:25 
GeneralRe: How to write to new line using streamwriter. Pin
rahul.net1120-Aug-07 4:32
rahul.net1120-Aug-07 4:32 
AnswerRe: How to write to new line using streamwriter. Pin
Rupesh Kumar Swami20-Aug-07 2:28
Rupesh Kumar Swami20-Aug-07 2:28 
hi rahul,
use following procedure

Private Sub CreateTextFile(ByVal FilePath As String, ByVal data As String)<br />
        Dim oFile As System.IO.File<br />
        Dim oWrite As System.IO.StreamWriter<br />
        Dim oRead As System.IO.StreamReader<br />
        Dim PreviousData As String = ""<br />
        Dim CheckHypen As String<br />
<br />
        If File.Exists(FilePath) Then<br />
            oRead = oFile.OpenText(FilePath)<br />
            While oRead.Peek <> -1<br />
                If PreviousData = "" Then<br />
                    PreviousData = oRead.ReadLine()<br />
                Else<br />
                    CheckHypen = oRead.ReadLine<br />
                        PreviousData = PreviousData & ControlChars.NewLine & CheckHypen<br />
                    End If<br />
                End If<br />
            End While<br />
            oRead.Close()<br />
        End If<br />
<br />
        oWrite = oFile.CreateText(FilePath)<br />
<br />
        If PreviousData = "" Then<br />
            PreviousData = data<br />
            oWrite.WriteLine(PreviousData)<br />
        Else<br />
            PreviousData = PreviousData & ControlChars.NewLine & data<br />
            oWrite.WriteLine(PreviousData)<br />
        End If<br />
       <br />
        oWrite.Close()<br />
end sub<br />


hope this helps



Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)

GeneralRe: How to write to new line using streamwriter. Pin
rahul.net1120-Aug-07 4:31
rahul.net1120-Aug-07 4:31 
AnswerRe: How to write to new line using streamwriter. Pin
Luc Pattyn20-Aug-07 2:33
sitebuilderLuc Pattyn20-Aug-07 2:33 
GeneralRe: How to write to new line using streamwriter. Pin
rahul.net1120-Aug-07 4:30
rahul.net1120-Aug-07 4:30 
AnswerRe: How to write to new line using streamwriter. Pin
Csharp™20-Aug-07 20:22
Csharp™20-Aug-07 20:22 
AnswerRe: Help me to create SYNTAX TREE according to our own created grammar Pin
Dave Kreskowiak20-Aug-07 2:16
mveDave Kreskowiak20-Aug-07 2:16 
QuestionPrint Report Without preview in Microsoft Reporting Service Pin
Rupesh Kumar Swami19-Aug-07 23:54
Rupesh Kumar Swami19-Aug-07 23:54 
Questionany one help for sum(fld,condfld) function in crystal report Pin
Senthil S19-Aug-07 23:44
Senthil S19-Aug-07 23:44 
AnswerRe: any one help for sum(fld,condfld) function in crystal report Pin
Christian Graus19-Aug-07 23:52
protectorChristian Graus19-Aug-07 23:52 
AnswerRe: any one help for sum(fld,condfld) function in crystal report Pin
ChandraRam20-Aug-07 0:10
ChandraRam20-Aug-07 0:10 
QuestionHow to get unread mail from server using pop3 protocol Pin
rahul.net1119-Aug-07 22:51
rahul.net1119-Aug-07 22:51 
QuestionWindows XP remote connection limit. Pin
Jwalant Natvarlal Soneji19-Aug-07 22:30
Jwalant Natvarlal Soneji19-Aug-07 22:30 
AnswerRe: Windows XP remote connection limit. Pin
Craster20-Aug-07 0:50
Craster20-Aug-07 0:50 
AnswerRe: Windows XP remote connection limit. Pin
Dave Kreskowiak20-Aug-07 2:19
mveDave Kreskowiak20-Aug-07 2:19 
QuestionSorting Pin
CyberSamuraiii19-Aug-07 22:26
CyberSamuraiii19-Aug-07 22:26 
AnswerRe: Sorting Pin
originSH19-Aug-07 22:32
originSH19-Aug-07 22:32 
GeneralRe: Sorting Pin
CyberSamuraiii19-Aug-07 23:00
CyberSamuraiii19-Aug-07 23:00 
GeneralRe: Sorting Pin
originSH20-Aug-07 0:06
originSH20-Aug-07 0:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.