File Not Getting Imported (Black Magic)
-
:confused::confused::confused: Hi All I have two files 1.Application File 2.Import File I have some data to be imported to Application File from import file. When the file to be imported is in the executing directory and i run the application the code is working fine and actually importing the data to the application file. Now the challenge is when the Import File is not in the executing directory.My application do not give any error and also runs fine(i used breakpoints and checked the intermediate values of variables(all were correct)).From intermediate variables i conclude that my application is reading data from the file to be imported correctly.But it is not writing into it.And after closing the application The application file is supposed to have Imported data from the import file.But it donot have any imported data and shows the data of previous state. After that I decided to go for an alternative I decided to copy the import file from another location(say desktop) to executing directory. First I used 1.Fileinfo f = new FileInfo("Fully qualified path of import file"); f.CopyTo(@"tempdata.olf"); 2. i used FileStream code to copy files using Binary reader and binary writer The code works fine and do not throw any runtime errors or exception But the import file is not copied to the tempdata.olf. Note: 1.I have used FullName(fully Qualified Path) of both files 2.The application is working as desired only when both the files are in executing directory. 3.I am running the application in admin account Does anyone has idea what may be wrong. Thanks Regards THE SK
-
:confused::confused::confused: Hi All I have two files 1.Application File 2.Import File I have some data to be imported to Application File from import file. When the file to be imported is in the executing directory and i run the application the code is working fine and actually importing the data to the application file. Now the challenge is when the Import File is not in the executing directory.My application do not give any error and also runs fine(i used breakpoints and checked the intermediate values of variables(all were correct)).From intermediate variables i conclude that my application is reading data from the file to be imported correctly.But it is not writing into it.And after closing the application The application file is supposed to have Imported data from the import file.But it donot have any imported data and shows the data of previous state. After that I decided to go for an alternative I decided to copy the import file from another location(say desktop) to executing directory. First I used 1.Fileinfo f = new FileInfo("Fully qualified path of import file"); f.CopyTo(@"tempdata.olf"); 2. i used FileStream code to copy files using Binary reader and binary writer The code works fine and do not throw any runtime errors or exception But the import file is not copied to the tempdata.olf. Note: 1.I have used FullName(fully Qualified Path) of both files 2.The application is working as desired only when both the files are in executing directory. 3.I am running the application in admin account Does anyone has idea what may be wrong. Thanks Regards THE SK
Are you using Vista ? Vista creates 'magic folders', if you don't have good security settings, I believe.
Christian Graus Driven to the arms of OSX by Vista.
-
Are you using Vista ? Vista creates 'magic folders', if you don't have good security settings, I believe.
Christian Graus Driven to the arms of OSX by Vista.
I am using Windows Xp SP2 Regards THE SK
-
Are you using Vista ? Vista creates 'magic folders', if you don't have good security settings, I believe.
Christian Graus Driven to the arms of OSX by Vista.
Christian Graus wrote:
Vista creates 'magic folders',
Dude, there is no Magic in computer...
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can
-
Are you using Vista ? Vista creates 'magic folders', if you don't have good security settings, I believe.
Christian Graus Driven to the arms of OSX by Vista.