how can i call data from usb to my "main" at desktop. Example i want to call the variable 'x' at my file in usb, then use it in my desktop file..

Your question is not clear. Perhaps you can explain a little more.

If you are talking about removable drive, it may be difficult because each computer may have different drive letter assigned. Unless you know exactly which drive you are looking for, I am not sure whether or not you can read the file content without IO error.

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.