shiptoncraig's forum posts

#1 Posted by shiptoncraig (149 posts) -

@DrDarkStryfe said:

@shiptoncraig said:

I don't get why this is even necessary. It was never required before and it isn't required now.

The fact that he will be walking into the place that kicked him out makes it required.

Also, the people that ran Gamespot back then do not exist. CBSi bought up CNET in 2008.

What is required is for Jeff and the team to come to terms with the situation. Whether we like it or not, we don't have to know the intricacies for the acquisition to happen.

#2 Posted by shiptoncraig (149 posts) -

I don't get why this is even necessary. It was never required before and it isn't required now.

#3 Posted by shiptoncraig (149 posts) -

Could you

  • paste the bit of code you currently have.
  • check if the file you are trying to access exists in the right location.
  • check that the file isn't currently opened in an editor?

Let's crack this thing.

#4 Edited by shiptoncraig (149 posts) -

@AnimalFather said:

@shiptoncraig said:

@AnimalFather said:

@IllegalizePelvicThrusts said:

As far as hints go, take a look at this lesson on file i/o from the official Java Tutorials. Pay close attention to Character Streams and Buffered Streams. Your slashes seem to be backwards in that string. Remember that "\x" (where x is a character) is considered an escape sequence, so "C:\n" will get interpreted as "C:\<newline>".

i changed the slashes and not it only give the invalid escape seq error

If you do what File.separator/String concatenation, what happens then?

thats greek for me.

FileReader f = new FileReader("C:/Grey/Monaco/Desktop/TheList.txt")

Would become:

FileReader f = new FileReader("C:" + File.separator + "Grey" + File.separator + "Monaco" + File.separator + "Desktop" + File.separator + "TheList.txt");

or:

String separator = File.separator;

FileReader f = new FileReader("C:" + separator + "Grey" + separator + "Monaco" + separator + "Desktop" + separator + "TheList.txt");

Better yet, instead of using loads of separate strings and concatenation, use a StringBuilder or StringBuffer object.

#5 Posted by shiptoncraig (149 posts) -

@AnimalFather said:

@IllegalizePelvicThrusts said:

As far as hints go, take a look at this lesson on file i/o from the official Java Tutorials. Pay close attention to Character Streams and Buffered Streams. Your slashes seem to be backwards in that string. Remember that "\x" (where x is a character) is considered an escape sequence, so "C:\n" will get interpreted as "C:\<newline>".

i changed the slashes and not it only give the invalid escape seq error

If you do what File.separator/String concatenation, what happens then?

#6 Posted by shiptoncraig (149 posts) -

I've always used a BufferedReader, with a FileReader in the constructor. What kind of exception are you getting back?

#7 Posted by shiptoncraig (149 posts) -

He probably acted in self-defense and then once the bully was weak, he saw an opportunity to give him back all the grief he had received for x amount of time.

#8 Posted by shiptoncraig (149 posts) -

He's always been a good member of the team. I find the apparent internet hate for him to be just a little bit lame.

#9 Posted by shiptoncraig (149 posts) -

It just worked for me, after refreshing my podcast page in iTunes a few times.

#10 Posted by shiptoncraig (149 posts) -

People getting worked up over review scores should get a grip and move on.