4 Replies - 265 Views - Last Post: 01 December 2013 - 05:02 AM Rate Topic: -----

#1 darkphantom93  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 01-December 13

File Handling, Search, Add, Delete

Posted 01 December 2013 - 01:04 AM

Hi, Im java beginner. Im doing my assignment and face some problem.

this is my program description:
Admin register new user, clerk allocate engineer by entering engineer name. If engineer exist, it will add record.

But now my problem is clerk cant search the engineer name which in the register.txt.
Engineer also cant search the file create by clerk.

https://www.dropbox....dfz/java.rar?m=[

Is This A Good Question/Topic? 0
  • +

Replies To: File Handling, Search, Add, Delete

#2 salazar  Icon User is offline

  • D.I.C Addict

Reputation: 87
  • View blog
  • Posts: 539
  • Joined: 26-June 13

Re: File Handling, Search, Add, Delete

Posted 01 December 2013 - 02:49 AM

It would be easier if you posted the code to the form directly. Then the person view wouldn't unnecessarily redirected to a different page. Learn how to post code on this forum. All you need is to use code tags most of the time. But after opening your compressed folder, I do realize why you did it this way. Sorry, I figured you only had a few files.

This post has been edited by salazar: 01 December 2013 - 02:51 AM

Was This Post Helpful? 0
  • +
  • -

#3 darkphantom93  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 01-December 13

Re: File Handling, Search, Add, Delete

Posted 01 December 2013 - 02:58 AM

Sorry abt that. My code is too long to quote :pinch:
Is it possible to solve my problem??

thanks :)
Was This Post Helpful? 0
  • +
  • -

#4 andrewsw  Icon User is online

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3227
  • View blog
  • Posts: 10,837
  • Joined: 12-December 12

Re: File Handling, Search, Add, Delete

Posted 01 December 2013 - 04:45 AM

You should have some idea of where the problem arises? Post some sections of your code that are relevant.

You will also need to explain the problem more clearly.
Was This Post Helpful? 0
  • +
  • -

#5 darkphantom93  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 01-December 13

Re: File Handling, Search, Add, Delete

Posted 01 December 2013 - 05:02 AM

I have no idea where is the problem and y its happen.

admin register new user (engineer) and save to user.txt. clerk search engineer by entering name. if exist, clerk able to add detail and save it as allocate.txt. Engineer can search his job by entering customer name.

my problem is clerk cant search engineer name which is created by admin, only admin can search the content in the file. Engineer also cant search the content inside allocate.txt that created by clerk.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1