| | |
How to send text to a text file using j2me through http connection?
![]() |
•
•
Join Date: Sep 2004
Posts: 1
Reputation:
Solved Threads: 0
Regarding the title, i want to know the exact way to writing text data to a text file on a web server using http connection in J2ME. I tried the way as below:
OutputConnection connection=)OutputConnection)Connector.open("http://localhost/message.txt;append=true",Connector.WRITE);
OutputStream out=connection.openOutputStream();
PrintStream output=new PrintStream(out);
output.println("Testing");
out.close();
the codes have no problem and no exception. But when i open the text file, nothing printed to the text file. Anybody has the appropriate solution?
OutputConnection connection=)OutputConnection)Connector.open("http://localhost/message.txt;append=true",Connector.WRITE);
OutputStream out=connection.openOutputStream();
PrintStream output=new PrintStream(out);
output.println("Testing");
out.close();
the codes have no problem and no exception. But when i open the text file, nothing printed to the text file. Anybody has the appropriate solution?
![]() |
Similar Threads
- Create and send text file (PHP)
- Saving output of script to text file (Python)
- how do I send a text file to a printer connected to the client's computer (ASP.NET)
- how to open and text file on web from windows application (C#)
- # of lines in a text file (Java)
- Having roblems using PHP to send info as text file (PHP)
- Help Reading Info in Text File Into an Array (C++)
Other Threads in the Java Forum
- Previous Thread: Window class problem(iam a new bee)
- Next Thread: i need help with my program guys, how to
| Thread Tools | Search this Thread |
911 addball addressbook android api append applet application apps array arrays automation binary bluetooth businessintelligence button card character class client code collision component crashcourse css csv database eclipse ee error fractal free ftp game gis givemetehcodez graphics gui html ide image integer integration j2me japplet java javaarraylist javadoc javafx javaprojects jni jpanel julia jvm linked linux list loan machine map method methods migrate mobile netbeans objects oriented output phone physics problem program programming project projects radio recursion replaydirector reporting researchinmotion rotatetext scanner se server service set sms software sort sql string swing test textfield threads tree trolltech ubuntu utility windows





