Author Topic: Why doesn't my code work?  (Read 9429 times)

Offline bvonarx

  • Newcomer
  • *
  • Posts: 41
    • View Profile
Why doesn't my code work?
« on: July 15, 2010, 06:18:43 PM »
I created this code in MS Notepad and saved it as a UTF-8 file per instructions but when I try to use it it only returns the first part of the line of code "Manchester United". How do I get the rest of the line of info included?


mu   Manchester United      
mumgr   Manchester United   Manager   Sir Alex Ferguson
mu1   Manchester United   Goalkeeper   Edwin Van Der Saar
mu2   Manchester United   Defender   Gary Neville
mu3   Manchester United   Defender   Patrice Evra
mu4   Manchester United   Midfielder   Owen Hargreaves
mu5   Manchester United   Defender   Rio Ferdinand
mu6   Manchester United   Defender   Wes Brown
mu7   Manchester United   Striker   Michael   Owen
mu8   Manchester United   Midfielder   Anderson
mu9   Manchester United   Forward   Ditimar Berbatov
mu10   Manchester United   Forward   Wayne Rooney
mu11   Manchester United   Midfielder   Ryan Giggs
mu13   Manchester United   Midfielder   Ji-Sung Park
mu15   Manchester United   Defender   Nemanja Vidic
mu16   Manchester United   Midfielder   Michael Carrick
mu17   Manchester United   Midfielder   Nani
mu18   Manchester United   Midfielder   Paul Scholes
mu19   Manchester United   Forward   Danny Welbeck
mu20   Manchester United   Defender   Fabio DiSilva
mu21   Manchester United   Defender   Rafael DiSilva
mu22   Manchester United   Defender   John O'Shea
mu23   Manchester United   Defender   Johnny Evans
mu24   Manchester United   Midfielder   Darren Fletcher
mu25   Manchester United   Midfielder   Antonio Valencia
mu26   Manchester United   Forward   Gabriel Obertan
mu27   Manchester United   Forward   Frederico Marcheda
mu28   Manchester United   Midfielder   Darren Gibson
mu29   Manchester United   Goalkeeper   Tomaz Kuszczak
mu30   Manchester United   Defender   Ritchie De Laet
mu32   Manchester United   Forward   Mame Biram Diouf
mu35   Manchester United   Midfielder   Tom Cleverley
mu31   Manchester United   Defender   Corry Evans
mu40   Manchester United   Goalkeeper   Ben Amos
mujh   Manchester United   Forward   Javier Hernandez

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Why doesn't my code work?
« Reply #1 on: July 15, 2010, 06:27:31 PM »
I created this code in MS Notepad and saved it as a UTF-8 file per instructions but when I try to use it it only returns the first part of the line of code "Manchester United". How do I get the rest of the line of info included?


mu   Manchester United      
mumgr   Manchester United   Manager   Sir Alex Ferguson
mu1   Manchester United   Goalkeeper   Edwin Van Der Saar
mu2   Manchester United   Defender   Gary Neville
mu3   Manchester United   Defender   Patrice Evra
mu4   Manchester United   Midfielder   Owen Hargreaves
mu5   Manchester United   Defender   Rio Ferdinand
mu6   Manchester United   Defender   Wes Brown
mu7   Manchester United   Striker   Michael   Owen
mu8   Manchester United   Midfielder   Anderson
mu9   Manchester United   Forward   Ditimar Berbatov
mu10   Manchester United   Forward   Wayne Rooney
mu11   Manchester United   Midfielder   Ryan Giggs
mu13   Manchester United   Midfielder   Ji-Sung Park
mu15   Manchester United   Defender   Nemanja Vidic
mu16   Manchester United   Midfielder   Michael Carrick
mu17   Manchester United   Midfielder   Nani
mu18   Manchester United   Midfielder   Paul Scholes
mu19   Manchester United   Forward   Danny Welbeck
mu20   Manchester United   Defender   Fabio DiSilva
mu21   Manchester United   Defender   Rafael DiSilva
mu22   Manchester United   Defender   John O'Shea
mu23   Manchester United   Defender   Johnny Evans
mu24   Manchester United   Midfielder   Darren Fletcher
mu25   Manchester United   Midfielder   Antonio Valencia
mu26   Manchester United   Forward   Gabriel Obertan
mu27   Manchester United   Forward   Frederico Marcheda
mu28   Manchester United   Midfielder   Darren Gibson
mu29   Manchester United   Goalkeeper   Tomaz Kuszczak
mu30   Manchester United   Defender   Ritchie De Laet
mu32   Manchester United   Forward   Mame Biram Diouf
mu35   Manchester United   Midfielder   Tom Cleverley
mu31   Manchester United   Defender   Corry Evans
mu40   Manchester United   Goalkeeper   Ben Amos
mujh   Manchester United   Forward   Javier Hernandez

You likely have tabs between Manchester United and the Position and an additional tab between the Position and the Player's name.  Remove the tabs and replace them with a space.

That should do it.

-Kirk

Offline bvonarx

  • Newcomer
  • *
  • Posts: 41
    • View Profile
Re: Why doesn't my code work?
« Reply #2 on: July 15, 2010, 06:52:55 PM »
That did it, lesson learned. Many thanks