Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Part of code is adding extra new line when saving to text file.
Post: RE: Part of code is adding extra new line when sav...

i fixed it! still not sure why its doing that, but its working now. what i did was convert the int for the clear and add miles back to a str before return, added in a \n with that string. still don't ...
lovepeace GUI 9 5,032 Aug-24-2019, 12:52 PM
    Thread: Part of code is adding extra new line when saving to text file.
Post: RE: Part of code is adding extra new line when sav...

Still does the same thing. I may have to go about writing a whole new save function and going about it differently, the is the second version of my save function. first one was importing the file at s...
lovepeace GUI 9 5,032 Aug-24-2019, 11:14 AM
    Thread: Part of code is adding extra new line when saving to text file.
Post: RE: Part of code is adding extra new line when sav...

if i cut that line, than add and clear dont work for me. combines them into one number on same line... i pulling my hair out! lol :)
lovepeace GUI 9 5,032 Aug-24-2019, 10:54 AM
    Thread: Part of code is adding extra new line when saving to text file.
Post: RE: Part of code is adding extra new line when sav...

I have no idea why its not working for me. I used the code you edited(changed the path back) and it still does the same thing. I'm so confused. also im using windows 10, ive tried IDLE pycharm and VSC...
lovepeace GUI 9 5,032 Aug-24-2019, 10:48 AM
    Thread: Part of code is adding extra new line when saving to text file.
Post: RE: Part of code is adding extra new line when sav...

I have line 30 in there because if i don't, it combines "goal" and "current" into one number on the same line. sorry for the double post, i didn't know how to delete the first one. as I mentioned, "ad...
lovepeace GUI 9 5,032 Aug-24-2019, 09:25 AM
    Thread: Part of code is adding extra new line when saving to text file.
Post: Part of code is adding extra new line when saving ...

new to python 3 so bare with me lol I can't for the life of me figure out whats going wrong. the problem is when i use "set goal" it adds a blank line in the save file, so line 1 is a number line 2 is...
lovepeace GUI 9 5,032 Aug-23-2019, 11:46 PM
    Thread: Help loading INT from a file.
Post: Help loading INT from a file.

hello, I'm new here, and new to python. so please be patient with me lol **smile** I'm making an app to track my cycling miles. I need to be able to load saved "miles" from a file and set the int to...
lovepeace General Coding Help 1 1,897 Apr-13-2019, 12:45 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020