Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

To create a new file in Windows Vista

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Program runs fine but i get a red line message as under . I am wondering what else details that i can provide for a better solution . I would deeply appreciate any criticisms or suggestion .

Caught IOException: c:\Admin\Documents\NetBeansProjects\project_275\Log\log.txt (The system cannot find the path specified)
 
Marshal
Posts: 28288
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You mean the program runs fine except for the minor issue that it doesn't write the data it's supposed to write, because you told it to create a file in a folder which doesn't exist?
 
sanjay ramaswamy
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually my path was wrong in the example that i posted...admin\documents are not under c: . But my point was if my path was c:\\log.txt a file named log.txt that i want the code to create and i want to write data in it , Vista was not letting me do that so i wanted a way out .

this url explains how to bend the security settings of Vista like that of XP .
http://www.lancelhoff.com/how-to-make-windows-vista-admin-account-act-like-xp/
reply
    Bookmark Topic Watch Topic
  • New Topic