• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

text file

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I�d like to know how can I manipulate a text file. For example: uploading, downloading, opening, reading and writing a text file.
Thanks.
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Greetings,
You would need to explore the following --> java.io.File
and the methods such as
++ createNewFile()
Atomically creates a new, empty file named by this abstract pathname if and only if a file with this name does not yet exist
++ delete()
Deletes the file or directory denoted by this abstract pathname
++ mkdir()
Creates the directory named by this abstract pathname
...etc
If you need to see how is this being done, book "JavaServer Pages: Your Visual Blueprint to Designing Dynamic Content with JSP" which you can find on amazon.com has exact examples of what are you looking for.
m, phx

 
reply
    Bookmark Topic Watch Topic
  • New Topic