Jump to content
Xtreme .Net Talk

Search the Community

Showing results for tags 'streamreader'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • New Member at Xtreme .Net Talk?
    • Meet and Greet
    • Announcements
  • .NET
    • General
    • Windows Forms
    • ASP.NET
    • Directory / File IO / Registry
    • Database / XML / Reporting
    • Network
    • Graphics and Multimedia
    • Interoperation / Office Integration
    • Deployment
    • Regular Expressions
    • Syntax Specific
  • Knowledge Base
    • Tutors Corner
    • Code Library
    • Quick Tips
  • Xtreme .Net Talk Members Area
    • Water Cooler
    • Suggestions, Bugs, and Comments

Blogs

There are no results to display.

Categories

  • Code Samples
  • Tutorials & Guides
  • Articles
  • Code Downloads

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Location


Occupation


Visual Studio .NET Version


.NET Preferred Language


Skype


Facebook


Twitter ( X )

Found 1 result

  1. Okay, we've run across something a bit odd. I have a Windows forms application, that when it starts, downloads and opens a file (with a .ini file extension) to retrieve some system settings. Private Sub SetupKioskInformation() Dim strKioskString As String = "" Dim strProperty() As String = Nothing Dim strObject As String = "" Dim strValue As String = "" Dim bolbtnWebpageOneSet As Boolean = False Dim bolbtnWebpageTwoSet As Boolean = False Try '-------------------------------------------------------- '- Determine if the Kiosk.ini file exists . . . '-------------------------------------------------------- If File.Exists(strApplicationPath & "kiosk.ini") = True Then '---------------------------------------------------- '- If it does open it in a StreamReader . . . '---------------------------------------------------- srStreamReader = New StreamReader(strApplicationPath & "kiosk.ini") Do While srStreamReader.Peek >= 0 '- Do some stuff . . . Loop Catch ex As Exception WriteToErrorReport(ex.Message, ex.StackTrace, "SetupInformationButtons") Finally If srStreamReader IsNot Nothing Then srStreamReader.Close() srStreamReader.Dispose() End If End Try End Sub And it also opens another file to write some log information to. This file has a .log extension. Private Function WriteLastTransferDate() As Boolean Dim bolWriteLastTransferDate As Boolean = True Try swStreamWriter = New StreamWriter(strApplicationPath & strLastTransferDateFileName, False) swStreamWriter.WriteLine(Now.ToShortDateString) Catch ex As Exception bolWriteLastTransferDate = False WriteToErrorReport(ex.Message, ex.StackTrace, "WriteLastTransferDate") Finally If swStreamWriter IsNot Nothing Then swStreamWriter.Close() swStreamWriter.Dispose() End If End Try Return bolWriteLastTransferDate End Function This application is running on Windows 7 32-bit version. On two of the three machines it is installed on everything works fine. But on the third machine, for some reason, when we minimize or close the application we see each of the above mentioned files open in Notepad. The question I have is why should Notepad be opening for either of those files since I'm not using Notepad?
×
×
  • Create New...