Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlets

 
tarnovo
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want some explanation for this problem:
I write a servlets who reads from a file where write the employe report(name,SSn,birthdate), I make a table name,SSN, birthdate(3 rows).
I read this file with: FileReader file = new FileReader("c:\s_test\data.txt");
file.readLine(name1.substring(0,20).trim());
file.readLine(SSN1.substring(0,10).trim());
file.readLine(birthdate.sustring(0,10).trim());
I have to write while loop but I don't know how.
Could somebody tell me how?
Thanks!
Jany

------------------
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"tarnovo",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp .
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements.
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic