Solved

I want to Help vb convert to c#

Posted on 2007-11-14
2
156 Views
Last Modified: 2010-04-15
Sub CheckVerbose()
    verbose = False
    Set oFSO = CreateObject("Scripting.FileSystemObject")
    Set propFile = oFSO.OpenTextFile(App.Path & "\sfa.properties", 1)
    propFile.SkipLine
    propFile.SkipLine
    strverbose = propFile.ReadLine
    mypos = InStr(1, strverbose, "=", 1)
    verbose = Mid(strverbose, mypos + 1, Len(strverbose) - mypos)
    If verbose <> "" Or verbose = "true" Then
             verbose = True
    End If
    propFile.Close
    Set propFile = Nothing
    Set oFSO = Nothing
End Sub
0
Comment
Question by:sitg
2 Comments
 
LVL 29

Accepted Solution

by:
Gautham Janardhan earned 500 total points
ID: 20287016
           public void CheckVerbose()
            {
                  System.IO.StreamReader ss = new System.IO.StreamReader("path");
                  ss.ReadLine();
                  ss.ReadLine();
                  string strverbose = ss.ReadLine();
                  int myPos = str.IndexOf("=");
                  object verbose = strverbose.Substring
                        (myPos+1,strverbose.Length - myPos);
                  if(verbose.ToString() != "" || verbose.ToString() == "true")
                  {
                        verbose = true;
                  }
                  ss.Close();
                  ss = null;
            }
0
 

Author Comment

by:sitg
ID: 20287156
Thanks Sir
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How come this regular expression allows "e"? 14 45
asp.net web application 3 31
vb.net convert long time to mm:ss 23 13
Problem to Office 1 15
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question