CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2015
    Posts
    1

    i need to import a text file into MS Access database using java code

    i need to import a text file containing readings for sensors eg.34 56 4 75 23 (separated by space)to a MS access database(very imp).i am using eclipse IDE with JDK 7(since it accepts JDBC:ODBC Connections).

  2. #2
    Join Date
    Apr 2010
    Posts
    13

    Re: i need to import a text file into MS Access database using java code

    What have you tried? Where are you stuck?

    You can do it in the way of first reading the text file line by line and splitting the lines by space, storing the values to array of strings or objects or whatewer structure. Then create and open the connection to ms access database and fill it with insert statements or (i think it is not necessery) with some jpa provider like openjpa, hibernate etc.

Tags for this Thread

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured