Results 1 to 12 of 12
  1. #1
    Fargo94 is offline Member
    Join Date
    May 2011
    Posts
    10
    Rep Power
    0

    Default Project Advice (txt files and scanner class)

    I have a project from university that basically wants to create an application with a sting interface which stores records (developer, designer and project) that allows users to create,update and query these records. The catch is that the specification states that only txt files can be used (...not sure why but that is what it states) which I wanted some advice would it be diffcult to simulate database functionality with txt files? The second area I am unsure about is that they want files to only be read once when the application is started and then only be written to the application is terminated.I am still fairly new to programming and wanted to make sure I didnt get over my head in regards to my design and plan for the project. I have experience with databases and have familiarity with their incorporation into other langnuages relating to the functionality as described above just not also sure about how to do sessions and such. I am contemplating whther or not I just use some of prelearnt functionality and taking the grade penalties or taking the greater effort to have the project in line with what I find to be difficult requirements as I am pressed for time with other commitments both study and otherwise.

    Any advice would be greatly appreciated

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,421
    Rep Power
    25

    Default Re: Project Advice (txt files and scanner class)

    The reading and writing of txt files would be no problem. The design problem I see is with organizing the data in memory for accessing. I know nothing about SQL. What would be the API the progam would present to allow users to create,update and query these records?
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    Fargo94 is offline Member
    Join Date
    May 2011
    Posts
    10
    Rep Power
    0

    Default Re: Project Advice (txt files and scanner class)

    hi there thx for ur reply, the way in which the information will be structured is up to us, I would consider off the top of my head having all the information either stored on the same line with a unique ID and use a loop using recongition of an ID key word "ID" but like I said I am fairly new to this. Feeling almost a lil overwhlemed by the task ahead. The records are suppose to held withina collection whjile being used by the program. I hope that helps still a little unclear about API's like I said

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,421
    Rep Power
    25

    Default Re: Project Advice (txt files and scanner class)

    What will the user's API look like? What statements/commands will they use to access the data?
    Most of what you just talked about was the in backend, behind the API.

    What would a sample user's program look like that uses your program to get to the data?
    If you don't understand my response, don't ignore it, ask a question.

  5. #5
    Fargo94 is offline Member
    Join Date
    May 2011
    Posts
    10
    Rep Power
    0

    Default Re: Project Advice (txt files and scanner class)

    It states that the application must use the scanner class not the bufferedReader class. The interface would bsically be broken down into 3 parts from a main menu; creating records, updating records and querying them. There would need to be three kinds of tables for the records; developer, designer and project. I was consdering a different txt file for each type of record. Like I said I am in the very early stages I want to get a good idea how to structure the program such that I do not take on too much later on. I would consider feeding the .txt information into string and using the "containS" option to navigate between records. If i was using a db file the statements would be much more simpler SQL statements using a stream. I hope that helps.

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,421
    Rep Power
    25

    Default Re: Project Advice (txt files and scanner class)

    What would a sample user's program look like that uses your program to get to the data?

    You keep talking about the internals of your program. How the user calls your program could determine its classes and methods and how the data should be stored and accessed.
    If you don't understand my response, don't ignore it, ask a question.

  7. #7
    Fargo94 is offline Member
    Join Date
    May 2011
    Posts
    10
    Rep Power
    0

    Default Re: Project Advice (txt files and scanner class)

    honestly I'm not that far into the design and I looked up API but was still unclear about it. The user will use a series of Swing interfaces with buttons to navgate the different menus as mentioned above. A button click event would initiate the desired events (create, update, query). It would use OOP and other classes would contain the methods respective to each method's outcome eg. query, update etc. I'm more after an idea on the complexity of doing such processes with txt files as they dont use SQL. Under the specification the application would use the scanner class to do so. But with all my programming knowledge I am not sure how simple a task it will be to incorporate db fucntionality with txt files without the support features of using a db. Sorry thats really all i got, I am a fairly new developer so alot of these concepts are still very unfamiliar to me.

  8. #8
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,421
    Rep Power
    25

    Default Re: Project Advice (txt files and scanner class)

    initiate the desired events (create, update, query).
    How will the instructions to do those events be passed to your code?

    idea on the complexity of doing such processes with txt files as they dont use SQL.
    Are you going to define your own database access language?
    It is possible to have a SQL front end and a text file back end.
    If you don't understand my response, don't ignore it, ask a question.

  9. #9
    Fargo94 is offline Member
    Join Date
    May 2011
    Posts
    10
    Rep Power
    0

    Default Re: Project Advice (txt files and scanner class)

    The rule is that the application can only use text files, in regards to the front end there is no limitation.

  10. #10
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,421
    Rep Power
    25

    Default Re: Project Advice (txt files and scanner class)

    Have you designed the API for a programmer to use your code? What classes and methods will be available?
    You can decide where and how to save the data after the rest of the code has been designed.
    If you don't understand my response, don't ignore it, ask a question.

  11. #11
    Fargo94 is offline Member
    Join Date
    May 2011
    Posts
    10
    Rep Power
    0

    Default Re: Project Advice (txt files and scanner class)

    The record information has to be stored in txt files. Like I've said at this point, im not too sure about classes most likely one datafile, database, update, query, create classes in records to the functionality required.In all honestly I didnt even about API til you mentioned it and im really not at taht lv that anything id do up would be concrete. Its basically an application using swing interfaces simulating db functionality using txt files, it cannot use a db which could easily handle all the functionalities. I jsut wanted a rough idea where to start. I've already stated this. I honestly dont have much of an APIand outside of the txt file requirement there is not alot fo intracacy and obviosuly i have to save to code to txt files as i cant use a db. I am a new developer so this is about as much as i can tell u.

  12. #12
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,421
    Rep Power
    25

    Default Re: Project Advice (txt files and scanner class)

    Can you write an example program to show a user how to use your DB? What would he code?

    How and where the data is stored would be taken care of after you know what features your program will supply.
    The text file requirements might not have anything to do with the API for your classes.
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Need advice on best way to read tiff files
    By madroadbiker in forum NetBeans
    Replies: 0
    Last Post: 04-29-2011, 12:54 PM
  2. Replies: 0
    Last Post: 01-21-2011, 11:33 PM
  3. need advice on a web based project development
    By orhie in forum Advanced Java
    Replies: 6
    Last Post: 08-31-2010, 10:39 AM
  4. Help with Scanner project - pleeeeaaase..
    By zifis in forum New To Java
    Replies: 5
    Last Post: 03-24-2009, 04:08 PM
  5. Replies: 2
    Last Post: 12-19-2008, 03:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •