Search code examples
javadatabaseflat-filedata-access

Example of data access in java or a similar lang


Can someone post or point out an example of

  1. how flat-file data access is done in java? What java technology is used for the purpose?
  2. how rdbms data access is done in java? What java technology is used for the purpose?

Solution

    1. java.io is used to read and write data to files. There are several good tutorials online such as this one and this one that will assist you with understanding the details.
    2. JDBC is used to connect to databases. Again there are numerous JDBC tutorials online.