Hi Eswar,

I tried your case and I found that the reason is that you have to create 
the class 'table1' before inserting the records.

If you change your code in this way it should work:

OrientGraph g=new OrientGraph(currentPath);
System.out.println("Connessione stabilita");
OClass F=g.createVertexType("Table1", "V");  //Added instruction
FileReader fr = new FileReader("C:/ORIENTDBDOCS/myfile.txt");

BufferedReader br = new BufferedReader(fr);

String s;

while ((s = br.readLine()) != null) {

String query = String.format(s);

g.command(new OCommandSQL(query)).execute();

}

Hope it helps

Luca

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to