Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Weird output order when reading file

 
Ranch Hand
Posts: 35
IntelliJ IDE Python Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have problem with reading order which is nothing like what I have in my file.
Could you explain me why is it so?

Here is the beginning of the .csv I am reading:


Here is program that reads it (don't worry about returning null, this is still work in progress, as I need to process that file further on the road)


Here is the output:


However if redirect output of the console to the file - everything looks fine:



 
Rancher
Posts: 175
7
Mac OS X IntelliJ IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using IntelliJ? It won't display all of the output if it's too long.

You might find this  this helpful
 
Andrzej Zahorski
Ranch Hand
Posts: 35
IntelliJ IDE Python Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do. Hmm, interesting, however if I run program in terminal (not embedded in IntelliJ):


 
I love a woman who dresses in stainless steel ... and carries tiny ads:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic