Posted by Anonymous on Wed 26 Aug 03:23 (modification of post by
- import java.io.*;
- public class Cat {
- public static void main (String args[]) {
- String thisLine;
- for (int i=0; i < args.length; i++) {
- try {
- FileInputStream fin = new FileInputStream(args[i]);
- // JDK1.1+
- BufferedReader myInput = new BufferedReader
- (new InputStreamReader(fin));
- while ((thisLine = myInput.readLine()) != null) {
- // SHIT HERE
- // But make sure to wipe!
- // And uses tabs for indentation!
- // noway... spaces > tabs and plz plz set ts=4
- // ts=4 is the one true way and tabs are less typing and easier to adjust display with
- // i'll grant you that they are easier to adjust display with, you might have me convinced on that
- // What are the advantages of spaces?
- // consistent look across all editors/viewers (vi,VS,some webrowser, etc).. thats it i guess
- // Hmmm, shouldn't your tabbing be right in all editors though? Only the width changes based on viewer.
- // >Combining tabs and spaces is where you get display issues if tab size is changed.
- // you know what... you're right. I'm going to start using tabs from now on.
- // What? This isn't how religious wars are supposed to end. I'm so confused.
- // HAH.. vim vs emacs?
- // I can't vouch for either... vim's learning curve was too steep and so I didn't get over the initial
- // >low-productivity bump, and emacs seems like it's full of powerful features I don't really need/use
- // >to be honest, I use Gedit for most of my coding, I just wish it had code folding.
- // Yeah, code folding is nice. I'm sorta a minimalist and stick with vim. On windows, a nice minimal
- // >editor is notepad++. anyway.. im out. nice pastebin chat :)
- // I've used that, it's good. Nice to chat with you too.
- }
- }
- catch (Exception e) {
- e.printStackTrace();
- }
- }
- }
- }
The paste: http://pastebin.com/m6b3d61b9
Follow on Twitter!