relativePath = \dir1\dir2\somefile.txt
CurrWorkDir = "C:\SomeFolder\"
char [] token = "\\";
fstream mystream;
mystream.open(filename,flags);
flags
std::ios_base::in, out, trunc, binary, app, ate
ate - puts our read and write pointers at the end of the file
seekp - seeks the write pointer
seekg - seeks the read pointer
seekp(num of bytes you want to seek, where you want to seek from);
seekp(0,std::ios_base::beg);
cur
end
// existing ioPakFile;
fstream fileIn;
ioPakFile.seekp(dir offset, std::ios_base::beg);
char buffer[256];
unsigned int nRead;
unsigned int nTotal = 0;
while(fileIn.good())
{
fileIn.read(buffer,256);
nRead = fileIn.gCount();
ioPakFile.write(buffer,nRead);
nTotal += nRead;
}
fileIn.close();
//EVERYTIME YOU MUST CLEAR IT AFTER YOU CLOSE
fileIn.clear();
//YOU MIGHT WANT TO CLEAR BEFORE YOU OPEN AGAIN
Monday, September 28, 2009
Software Engineering Day 1 Lab 1 Notes.
Here are the notes for SWE L1
Age != Skill;
So I've got a little problem. I'm angry, not because of anything serious but because of how naive I was just over a year ago.
I followed this podcast last year on competitive gaming. I thought these guys were godsend, probably the only people that understood how I felt about video games....and then I learned how to make them.
I see now just how ridiculous these people were and why they always got into arguments.
It's only been one year but I fully understand how to create video games from the ground up.
I've learned the core components of C++, Windows GDI, DirectX, C#, VisualBasic, Java, GDI+, as well as various data structures, compression algorithms, and design patterns for code architecture.
Yet after all this these same people dismissed me in a debate on video games because of my age.
Quite frankly, I'm insulted.
However, I see now that arguing with these people would continue the trend.
An ouroboros if you will.
Whatever, I'm not going to let it get to me.
I know what capabilities I have and what I've learned.
I know how to make a game and understand why things happen. So I'm okay with this.
I followed this podcast last year on competitive gaming. I thought these guys were godsend, probably the only people that understood how I felt about video games....and then I learned how to make them.
I see now just how ridiculous these people were and why they always got into arguments.
It's only been one year but I fully understand how to create video games from the ground up.
I've learned the core components of C++, Windows GDI, DirectX, C#, VisualBasic, Java, GDI+, as well as various data structures, compression algorithms, and design patterns for code architecture.
Yet after all this these same people dismissed me in a debate on video games because of my age.
Quite frankly, I'm insulted.
However, I see now that arguing with these people would continue the trend.
An ouroboros if you will.
Whatever, I'm not going to let it get to me.
I know what capabilities I have and what I've learned.
I know how to make a game and understand why things happen. So I'm okay with this.
Subscribe to:
Posts (Atom)