• Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating an actual file  RSS feed

 
Sweety C Sanford
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

What are the ways to create an actual file?

Please pour in your ideas.

Thanks in advance,
Jesu
 
Rob Spoor
Sheriff
Posts: 21050
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked the API, especially the java.io package?
 
Sweety C Sanford
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whenever you create an instance of a FileReader, a FileWriter, a PrintWriter, a FileInputStream, or a FileOutputStream classes, you automatically create a file, unless one already exists.


Anything else go ahead and add it .
 
Rob Spoor
Sheriff
Posts: 21050
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.io.File has some methods for creating files. The names will tell you which ones
 
Sweety C Sanford
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks I got it

createNewFile() method creates an actual file.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!