Convert this from JavaScript to C#

lol this I cant figure out this part

function ReadFile(filepathIncludingFileName : String) {
    sr = new File.OpenText(filepathIncludingFileName);
 
    input = "";
    while (true) {
        input = sr.ReadLine();
        if (input == null) { break; }
        Debug.Log("line="+input);
    }

if you need to see the rest of the script it is here 
http://forum.unity3d.com/threads/can-i-read-and-write-text-files-using-javascript.5084/

I guess this should be it:

void ReadFile(string filepathIncludingFileName) {
     StreamReader sr = File.OpenText(filepathIncludingFileName)       
     string input = "";
     while (true) {
         input = sr.ReadLine();
         if (input == null) { break; }
         Debug.Log("line="+input);
     }
}