Getting a file from a server

I want to get a simple text file from a server onto a handheld device. Is there a way to connect, login and download the file ? I have an example for getting the file from the localhost, but want to know if I can do the same from a remote server.

I would appreciate if an example (code) is provided. My level of J2ME programming is that of a novice.

Thanks,

TADA

[388 byte] By [TADAa] at [2007-10-3 3:05:05]
# 1
If you have an example which works with localhost, then it will work with any remote server if you have Internet access and also if your phone is configured properly (APN settings, GPRS).Mihai
Printisora at 2007-7-14 20:55:09 > top of Java-index,Java Mobility Forums,Java ME Technologies...