[Migrated content. Thread originally posted on 28 January 2012]
Can anyone please give the syntax to download a file from a web server to the client PC.I believe the code in C# would be:
WebClient Client = new WebClient ();
Client.DownloadFile("www.csharpfriends.com/.../index.aspx", " index.aspx");
or
WebClient Client = new WebClient ();
Stream strm = Client.OpenRead ("www.csharpfriends.com/.../index.aspx");
Thanks - I am new to Visual COBOL, and Object programming, so am struggling with "translating" C# to COBOL.