Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using field value

 
Amit kumar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to create a file with name that is the value of a particular field
 
Abhilash Vasudevan
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
could you please clarify your question.
In my thinking, it is not a problem to create a File object with a field value as long as you can get it as String.
regards
 
Amit kumar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what i am trying to do is that i have created a table which automaticaly generates serial no.
when user enters data through front-end i want his data to be store in file format on the name of the serial no which he is entering the data.
eg:= when he executes the applet and enters the value, at that time if the serial no is 2 then what he has entered should be stored in a file names 2.
 
Abhilash Vasudevan
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can create a new FileOutputStream() with a new File() object as parameter. The File() object takes the file path as argument where you can give your newly created serial number. The entered details can be writen in the fileinputstream.
As:

Hope this helps you
Regards
[ May 13, 2003: Message edited by: Abhilash Vasudevan ]
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Akumar,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic