Commit 6c518058 authored by Gaurav Arora (gaa721)'s avatar Gaurav Arora (gaa721)
Browse files

Made acess to files easy

parent 493fb58c
......@@ -157,7 +157,7 @@ void setupInside()
{
try {
fileOutQ = new FileOutputStream("c:/Users/"+user+"/Desktop/" +"DrawingData/"+ tempFiler + "Quest.ser");
fileOutQ = new FileOutputStream(sketchPath("") + "DrawingData/"+ tempFiler + "Quest.ser");
}
catch (FileNotFoundException ex) {
// Do something with mistake or ignore
......@@ -176,8 +176,8 @@ void setupInside()
if (saveornot)
{
try {
fileOut = new FileOutputStream("c:/Users/"+user+"/Desktop/" +"DrawingData/"+ tempFiler + "shapes.ser");
fileOutE = new FileOutputStream("c:/Users/"+user+"/Desktop/" +"DrawingData/"+ tempFiler + "Events.ser");
fileOut = new FileOutputStream(sketchPath("") +"/DrawingData/"+ tempFiler + "shapes.ser");
fileOutE = new FileOutputStream(sketchPath("")+"/DrawingData/"+ tempFiler + "Events.ser");
}
catch (FileNotFoundException ex) {
// Do something with mistake or ignore
......@@ -244,9 +244,9 @@ void setupInside()
currShape = "b";
try {
fileIn = new FileInputStream("c:/Users/"+user+"/Desktop/" + "DrawingData/"+tempFiler + "shapes.ser");
fileInE = new FileInputStream("c:/Users/"+user+"/Desktop/" + "DrawingData/"+tempFiler + "Events.ser");
fileInQ = new FileInputStream("c:/Users/"+user+"/Desktop/" + "DrawingData/"+tempFiler + "Quest.ser");
fileIn = new FileInputStream(sketchPath("") +"DrawingData/"+tempFiler + "shapes.ser");
fileInE = new FileInputStream(sketchPath("") +"/DrawingData/"+tempFiler + "Events.ser");
fileInQ = new FileInputStream(sketchPath("") +"/DrawingData/"+tempFiler + "Quest.ser");
in = new ObjectInputStream(fileIn);
inE = new ObjectInputStream(fileInE);
inQ = new ObjectInputStream(fileInQ);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment