Ever wanted to increase your skills but don’t have the $ to go back to college? Check out MIT’s OpenCourseWare – http://bit.ly/axEBzr
Tag Archive: Tips
In working on a few of my projects, I had a few issues dealing with extremely large XML files. More specifically, every computer that I tried to open them on failed miserably. I did a lot of searching and scouring of the internet to find a program that did this automatically. The best program I could find was called “Large Text File Viewer”, and that’s far from what I was looking for, although I was still happy to find a program that I could use to even just simply open the large files.
I started to try and “chunk” the files myself by hand, and after creating a few files thought to myself “there has to be an easier way to do this”. I got back on and kept searching for a solution. After a lot more digging, I finally came across a simple script doing exactly what I wanted it to do. I took the script and modified it a bit to follow OOP standards a bit more (before all addresses, URLS, etc. were hard coded).
Here is the class that I ended up creating:
|
So, in order to utilize this class, just create a script that calls the previous class file as follows:
|
