none
what should i do when im getting error like this. thank you RRS feed

  • Question

  • string FilePath = "D:\\sms-proto\\config.cfg";
                        string strfilename = ofd.FileName;
                        string filetext = File.ReadAllText(strfilename);
                        MessageBox.Show(strfilename);

                        gsm1arfcn.Text = (FilePath,"gsm.arfcn","");
                        gsm1cid.Text = (FilePath, "gsm1.cid", "");
                        gsm1deviceip.Text = (FilePath, "gsm1.deviceip", "");
                        gsm1devicemac.Text = (FilePath, "gsm1.devicemac", "");
    Monday, November 4, 2019 3:50 AM

All replies

  • Greetings Fayraith.

    What exactly is the error you are getting?

    And what are you trying to achieve? Those last four lines look very wrong, but I can't work out what they are supposed to do.

    Monday, November 4, 2019 4:06 AM
  • Hi fayratih,

    Thank you for posting here.

    Could you provide more details about your exception with which line of the code thrown the exception and some correct code about ‘(FilePath,"gsm.arfcn","")’ ? It will help us to do the test.

    We are waiting for your update.

    Best Regards,

    Xingyu Zhao


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, November 5, 2019 9:31 AM
    Moderator