File Handling : Problem Reading end of Line Programming Software Development by majesticmanish … = A; } stateMachine::~stateMachine(){ orgnl.close(); bakup.close(); } void stateMachine::process_input(){ char ch;…else currState = D; break; } } if(currState == A) bakup << ch; } } int main(){ stateMachine sm; sm… Re: sm sql database backup in C#.net Programming Databases by judithSampathwa … //Use this line if you have already created a bakup file. File.Delete(DBpath + "\\backup.bak");…); // Perform the backup bkpDatabase.SqlBackup(srvr); MessageBox.Show("Bakup of Database " + cmbDataBase.Text + " successfully … Where do Database file reside? Programming Web Development by Stefano Mtangoo … installed, that is when I knew that I forgot to bakup my databases. I used system restore and cannot access the… Very sad Hardware and Software Microsoft Windows by Stefano Mtangoo … installed, that is when I knew that I forgot to bakup my databases. I used system restore and cannot access the… backup in widows 7 Hardware and Software Microsoft Windows by aabi m using windows 7 home edition n m having problem whenevr i tries to make bakup of files actually this stared like this..i losses my pervious backup disk(1st backup ) and whn tries to make new ,widos star asking for the perious disk ., [B]so can anyone tell how could i make backup again[/B] sm sql database backup in C#.net Programming Databases by judithSampathwa …=C#] //Use this line if you have already created a bakup file. File.Delete(DBpath + "\\backup.bak"); this.Cursor… Oracle Dtabase Backup Using VB.NET Programming Software Development by Naveed_786 Dear all, Can any one tell me how can i take bakup on Every minute and hourly and complete whole day backup using VB.NET i.e i want to know the coding example Thanks in advance Error 0x80070002 when trying to do a backup with windows 7 pro 32 bit Hardware and Software Microsoft Windows by GEORGE V I have tried to make a backup using Windows 7 backup feature and every time I get an error message that bakup failed. Error 0x80070002 Re: hey man this is fraeky Hardware and Software Microsoft Windows by SAZAR … them in a basket (or as antioed says: make a bakup copy of everything that's important on your computer - that… Re: File Handling : Problem Reading end of Line Programming Software Development by Salem Perhaps something more meaningful than A B C etc Re: File Handling : Problem Reading end of Line Programming Software Development by majesticmanish sorry but i didnt get you. A, B, C ...are states and defined in here as enum type. My question is: Why compiler is not identifying end of line at case 'C' of switch block. I am using Dev C++. Re: File Handling : Problem Reading end of Line Programming Software Development by Salem I can see what they are. But I'd rather see words like IN_COMMENT or POSSIBLE_COMMENT as the names of states, rather than what you've got. With decent names, it might be plainly obvious that you can't (for example) get from IN_COMMENT to END_OF_LINE in one character. A B C do not do that. Re: File Handling : Problem Reading end of Line Programming Software Development by majesticmanish I agree with you sir. Name here are bit lack in meaning. Actual problem is not visible in this code. Please consider following code: [code] #include<iostream> #include<fstream> using namespace std; int main(){ ifstream fp1("xyz.txt"); char ch; for(;ch!='\n' && !(fp1.eof());fp1 >> ch)… Re: File Handling : Problem Reading end of Line Programming Software Development by Salem It seems to me that reads up to the first newline, then exits. Is that what you want? [code] while ( fp1 >> ch ) { } [/code] should read the whole file. If you've got something to do at a newline, then [code] while ( fp1 >> ch ) { if ( ch == '\n' ) { // woo hoo, newline goodness goes here } } [/code] Re: File Handling : Problem Reading end of Line Programming Software Development by Sky Diploma Well i think that you should use getline(); and then get the input onto a stringstream or a string and then follow onto the next thing. with the string or stringstream itself. Other than that i dont know a way of finding the end of the line. Because i am new to files . Hope this helps Edit : Seems that i am wrong. Ignore this post. Re: File Handling : Problem Reading end of Line Programming Software Development by majesticmanish Well sir thats what i'm saying what is my problem. ch read by (fp1 >> ch) is not getting '\n' at the end of ine (or fp1 >> ch doesn't support '\n'....that i dont know) lets try a simple problem. [code] #include<iostream> #include<fstream> using namespace std; int main(){ ifstream fp1("xyz.txt");… Re: File Handling : Problem Reading end of Line Programming Software Development by Freaky_Chris It should be noted that using ifstream with >> operator defaults to skipping whitespace characters, which '\n' is also included in. if you want to proccess the'\n' in a special manner then you should use the following loop condition [icode]while(fp1 >> noskipws >> ch)[/icode] Not that you do not need to check eof, the >>… Re: File Handling : Problem Reading end of Line Programming Software Development by majesticmanish sir freaky, you are a life saver. After hours of googling i am surprised why i didn't get 'noskipws' concept. May be i'm searching with wrong keywords.Thanks for your help. :icon_smile: Re: Where do Database file reside? Programming Web Development by cwarn23 Well there is one possibility but that is depending on what the system restore did. If the system restore restored files at {installationdirectory}/mysql/data/ then you could place your old files in there and that might display in PhpMyAdmin but don't over-right any files during the process. That is all I can think of. Re: Very sad Hardware and Software Microsoft Windows by OlyComputers At this point it's data recovery, not PHP, Windows software (WAMP) or even Vista. Stop using the drive, research data recovery and "undelete" from another system, and see what you can come up with. Re: backup in widows 7 Hardware and Software Microsoft Windows by mjdodd it is worth looking up on google if you are talking about the backing up of start up disks. If you are trying to do a back up to an external disk windows 7 home edition premium will not do an internal backup to an external disk. you will nee to use another suppliers backup program. M Re: backup in widows 7 Hardware and Software Microsoft Windows by aabi [QUOTE=mjdodd;1293429]it is worth looking up on google if you are talking about the backing up of start up disks. If you are trying to do a back up to an external disk windows 7 home edition premium will not do an internal backup to an external disk. you will nee to use another suppliers backup program. M[/QUOTE] thanks so thats means i hsve to… Re: sm sql database backup in C#.net Programming Databases by BitBlt I'm a little hesitant to post on this, as I'm a database guy not a C# guy. But just looking over the code you posted, there are a couple of items that seem odd to me: 1. Line 12, where does variable "DBpath" get populated? 2. Line 16, where does variable "srvr" get populated? That being said, you may also want to check … Re: sm sql database backup in C#.net Programming Databases by BitBlt Okay, I think I see the problem. On line 18 above, you are setting the DBPath to be the Application.StartupPath. This directory probably does not exist on your server, thus the operating system error 3 (see this link: [URL="http://msdn.microsoft.com/en-us/library/ms681382(v=vs.85).aspx"]http://msdn.microsoft.com/en-us/library/ms681382(v… Re: sm sql database backup in C#.net Programming Databases by judithSampathwa [QUOTE=BitBlt;1551782]Okay, I think I see the problem. On line 18 above, you are setting the DBPath to be the Application.StartupPath. This directory probably does not exist on your server, thus the operating system error 3 (see this link: [URL="http://msdn.microsoft.com/en-us/library/ms681382(v=vs.85).aspx"]http://msdn.microsoft.com/en… Re: sm sql database backup in C#.net Programming Databases by BitBlt From the MSDN link I posted: ERROR_BAD_NETPATH 53 (0x35) The network path was not found. You'll have to fix your code to construct a proper directory path and file name, either to the SQL Server machine or to whatever network resource you want to backup to. Until you do that you ill continue to have problems. Re: sm sql database backup in C#.net Programming Databases by judithSampathwa [QUOTE=BitBlt;1551826]From the MSDN link I posted: ERROR_BAD_NETPATH 53 (0x35) The network path was not found. You'll have to fix your code to construct a proper directory path and file name, either to the SQL Server machine or to whatever network resource you want to backup to. Until you do that you ill continue to have problems.[/QUOTE]… Re: sm sql database backup in C#.net Programming Databases by BitBlt You don't need the path where the database sits. The server connection object takes care of getting to the database. The path you specify is the folder where you want the backup file to be stored. You need permissions to that folder to write to it. Look at the other link I posted. Some other user had the same kind of problem as you. Read his … Re: sm sql database backup in C#.net Programming Databases by judithSampathwa [QUOTE=BitBlt;1551875]You don't need the path where the database sits. The server connection object takes care of getting to the database. The path you specify is the folder where you want the backup file to be stored. You need permissions to that folder to write to it. Look at the other link I posted. Some other user had the same kind of … Re: sm sql database backup in C#.net Programming Databases by BitBlt [QUOTE=judithSampathwa;1551928]which code are you referring to for me to read? please prove the links[/QUOTE] Right after you posted your long program listing, I included a post with links. Those are the ones I am referring to. Please refer to those. I apologize if I have added to your confusion. It is obvious I am not helping you. …