Could someone please tell me a way of uplading and downloading text files without the use of the .net framework and is simple to use.

Thanks

Recommended Answers

All 3 Replies

No idea about uploading files, but as for downloading a file, here's an example of how to download a picture of a kitten.

#include <windows.h>
#pragma comment(lib, "urlmon.lib")

int main() {
  char url[] = "http://felixgilman.com/wordpress/wp-content/uploads/2008/04/kitten.jpg";
  char savename[] = "kitten.jpg";
  URLDownloadToFile( NULL, url, savename, 0, NULL );
}

Just search the internet a bit, i'm sure you will figure it out.

No idea about uploading files, but as for downloading a file, here's an example of how to download a picture of a kitten

This code is wrong.
Initializing is missing and then it won't work on some OS SP...

commented: Bad rep, because i can. -3

This code is wrong.
Initializing is missing and then it won't work on some OS SP...

Fix it for me then, genius.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.