Results 1 to 3 of 3
Thread: Need Help W/ Writing to DB.
- 05-25-2011, 05:38 AM #1
Member
- Join Date
- May 2011
- Posts
- 1
- Rep Power
- 0
Need Help W/ Writing to DB.
I am attempting to create a simple register/login section for a launcher of a game.
The input has 3 fields. userNameC , passWordC , and userAgeC .
When I write to the DB, I use this:
bufferedWriter.write(userNameC + "\n" + passWordC + "\n" + userAgeC + "\n");
As you can see, the multiple instances of new lines mean it should create new lines!
Example: userNameC = asdf , passWordC = asdf1 , userAgeC = 54
It should write to the database as:
asdf
asdf1
54
Instead, it writes as:
asdfasdf154
Does anyone know why this might happen, or how to solve this issue?
Thanks in advance!
-Sabinno-
- 05-25-2011, 09:18 PM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
What "DB" are you using that you use a BufferedWriter rather than JDBC?
- 05-26-2011, 09:25 AM #3
Moderator
- Join Date
- Apr 2009
- Posts
- 10,460
- Rep Power
- 16
Similar Threads
-
writing to ram
By Timmins in forum New To JavaReplies: 0Last Post: 04-03-2011, 08:52 AM -
Im writing to a file and i want to skip lines while writing to a text file.
By Broden_McDonald in forum New To JavaReplies: 1Last Post: 02-27-2010, 01:29 AM -
Writing in XLS
By selva.bics in forum Advanced JavaReplies: 1Last Post: 11-09-2009, 09:09 AM -
writing to gui
By rob in forum New To JavaReplies: 2Last Post: 02-13-2009, 10:55 PM -
Writing to DAT or TXT file
By hunterbdb in forum Advanced JavaReplies: 7Last Post: 10-12-2008, 02:50 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks