I’m a recent new customer (bought license) and now am starting to learn python.
This is my code
#!/usr/bin/python
f = open('DataEmployees.csv')
line = f.readline()
while line:
print line
line = f.readline()
f.close()
I’m simply learning how to read a file and print it out line by line. I get the
[Decode error - output not utf-8]
And it shows a different portion of the file each and every time I run it.
I’ve googled this, looked at your forums, tried to change things like exec.py, Python.sublime-build — nothing, still the same.
It’s a bit frustrating b/c — I hate to say this — never have this problem with BBEdit. In fact, the only reason I’m using Sublime now is b/c it does the auto end bracket thing, and I like the UI where it shows you blocks of code. But from a reliability standpoint, it seems to not quite be there. Another problem with Sublime is when I run perl code in it, it sometimes can’t find a module I’m referencing. And then in BBEdit it works. This is a secondary problem, but overall and hoping you can solve this build decoder problem otherwise this will be money wasted.
Thanks.