Click here to Skip to main content
15,914,323 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to call a Console Exe in vb.net Pin
Vimalsoft(Pty) Ltd18-Oct-07 5:55
professionalVimalsoft(Pty) Ltd18-Oct-07 5:55 
GeneralRe: How to call a Console Exe in vb.net Pin
svanwass18-Oct-07 8:53
svanwass18-Oct-07 8:53 
GeneralRe: How to call a Console Exe in vb.net Pin
Vimalsoft(Pty) Ltd18-Oct-07 20:01
professionalVimalsoft(Pty) Ltd18-Oct-07 20:01 
QuestionAccess to Path is denied Pin
Rupesh Kumar Swami18-Oct-07 2:54
Rupesh Kumar Swami18-Oct-07 2:54 
AnswerRe: Access to Path is denied Pin
Paul Conrad18-Oct-07 3:38
professionalPaul Conrad18-Oct-07 3:38 
GeneralRe: Access to Path is denied Pin
Rupesh Kumar Swami18-Oct-07 5:31
Rupesh Kumar Swami18-Oct-07 5:31 
AnswerRe: Access to Path is denied Pin
Luc Pattyn18-Oct-07 4:33
sitebuilderLuc Pattyn18-Oct-07 4:33 
GeneralRe: Access to Path is denied Pin
Rupesh Kumar Swami18-Oct-07 5:46
Rupesh Kumar Swami18-Oct-07 5:46 
hi luc .following is the code that i use
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 />
                    If CheckHypen <> "-" Then ' if file already exist then remove hypen from file. Hypen is last character of File<br />
                        PreviousData = PreviousData & ControlChars.NewLine & CheckHypen<br />
                    End If<br />
                End If<br />
            End While<br />
            oRead.Close()<br />
        End If<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 />
        oWrite.Close()<br />
        oFile.Delete(Filepath)<br />
        PreviousData = PreviousData & ControlChars.NewLine & "-"<br />
        oFile.AppendAllText(Filepath, PreviousData, System.Text.Encoding.Unicode)<br />
    End Sub<br />

have any idea where i am wrong ?

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

My Company

GeneralRe: Access to Path is denied Pin
Luc Pattyn18-Oct-07 6:38
sitebuilderLuc Pattyn18-Oct-07 6:38 
Questiondownloading a file from another system which is connected through LAN Pin
Sunil Wise18-Oct-07 1:03
professionalSunil Wise18-Oct-07 1:03 
AnswerRe: downloading a file from another system which is connected through LAN Pin
DigiOz Multimedia18-Oct-07 5:46
DigiOz Multimedia18-Oct-07 5:46 
GeneralRe: downloading a file from another system which is connected through LAN Pin
Koltz18-Oct-07 23:07
Koltz18-Oct-07 23:07 
QuestionMake Blank a datatime type column in DataGridView control Pin
SekharOne18-Oct-07 0:20
SekharOne18-Oct-07 0:20 
Question[VB2005] Transfer Data via NetBIOS with access credentials Pin
morenz18-Oct-07 0:05
morenz18-Oct-07 0:05 
QuestionVB6 not "Born Again" C++ or VB.Net Pin
Polyprogrammer17-Oct-07 22:37
Polyprogrammer17-Oct-07 22:37 
AnswerRe: VB6 not "Born Again" C++ or VB.Net Pin
The ANZAC18-Oct-07 2:09
The ANZAC18-Oct-07 2:09 
AnswerRe: VB6 not "Born Again" C++ or VB.Net Pin
Polyprogrammer22-Oct-07 4:55
Polyprogrammer22-Oct-07 4:55 
AnswerRe: VB6 not "Born Again" C++ or VB.Net Pin
Dave Kreskowiak18-Oct-07 2:16
mveDave Kreskowiak18-Oct-07 2:16 
GeneralRe: VB6 not "Born Again" C++ or VB.Net Pin
Polyprogrammer22-Oct-07 4:18
Polyprogrammer22-Oct-07 4:18 
GeneralRe: VB6 not "Born Again" C++ or VB.Net Pin
Dave Kreskowiak22-Oct-07 12:05
mveDave Kreskowiak22-Oct-07 12:05 
GeneralRe: VB6 not "Born Again" C++ or VB.Net Pin
Polyprogrammer23-Oct-07 3:13
Polyprogrammer23-Oct-07 3:13 
AnswerRe: VB6 not "Born Again" C++ or VB.Net Pin
Colin Angus Mackay18-Oct-07 4:28
Colin Angus Mackay18-Oct-07 4:28 
GeneralRe: VB6 not "Born Again" C++ or VB.Net Pin
Polyprogrammer22-Oct-07 4:06
Polyprogrammer22-Oct-07 4:06 
GeneralRe: VB6 not "Born Again" C++ or VB.Net Pin
Colin Angus Mackay22-Oct-07 7:56
Colin Angus Mackay22-Oct-07 7:56 
GeneralRe: VB6 not "Born Again" C++ or VB.Net Pin
Polyprogrammer23-Oct-07 3:29
Polyprogrammer23-Oct-07 3:29 

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.