Hi, thanks for the repply
I forgot to mention that its an asp.net application, so I need to open the file directly from a local folder from within asp.net application. All examples that I saw in web are for download file not to open it.
Here you go, try this:
Public Class Welcome
Protected Sub Page_Load(Sender As Object, e As EventArgs) Handles Me.Load
' First use WinSCP to download your file from the server
' Then send the file contents to a multi-line TextBox
txtWebPageTextEditorField.Text = System.IO.File.ReadAllText(Request.MapPath("~/Files/DownloadedFile.txt"))
Private Sub cmdSave_Click(Sender As Object, e As EventArgs) Handles cmdSave.Click
' Save the file after editing
' Now use WinSCP to upload your file back to the server you got it from
This of course assumes you're working with a text file. If it's binary you're going to need special handling.