Important News

We have released Shinobi Life Online Pre-Alpha Version 1.1.0.0! This update features Earth Release: Earth Dome Jutsu, Aiming Mode and more! Try it out and tell us what you think.

User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

Discord

Statistics

Members
Total Members: 53843
Latest: Mehki
New This Month: 41
New This Week: 2
New Today: 2
Stats
Total Posts: 55991
Total Topics: 3364
Most Online Today: 349
Most Online Ever: 4232
(January 14, 2020, 07:47:33)
Users Online
Members: 1
Guests: 340
Total: 345
Grim2021
Google (4)

Author Topic: Python - File usage  (Read 1841 times)

0 Members and 1 Guest are viewing this topic.

Offline KimotoHaikye

  • Academy Student Poster
  • *
  • Posts: 34
  • Reputation Power: 2
  • KimotoHaikye has no influence.
  • Gender: Male
  • Hiyo <3
    • View Profile
  • Clan:
  • Organization: Blackbox
Python - File usage
« on: July 10, 2016, 17:25:35 »
So,
I'm quite good with python already,
But I need to know how to use pythons file usage thing, (Where you bring in the file normally using)
file = open('FILENNAME.txt, 'r'')
Yeah, that ^
And my problem is,
How do I use two files one holding usernames and the next holding passwords, and use them so I can successfully get prompt to log-in when the right username and the right password are entered.
If you need any more info about it just ask,
Also if you need help with python, just PM.
-Arigato


  • Character Name: Kimoto Ennia Roiyaru

Offline Dragon6624

  • Jonin Poster
  • *****
  • Posts: 554
  • Reputation Power: 3
  • Dragon6624 has no influence.
  • Gender: Male
  • True art is a....[WIP]
    • View Profile
  • Organization: Kurohasu
Re: Python - File usage
« Reply #1 on: July 11, 2016, 00:59:32 »
So,
I'm quite good with python already,
But I need to know how to use pythons file usage thing, (Where you bring in the file normally using)
file = open('FILENNAME.txt, 'r'')
Yeah, that ^
And my problem is,
How do I use two files one holding usernames and the next holding passwords, and use them so I can successfully get prompt to log-in when the right username and the right password are entered.
If you need any more info about it just ask,
Also if you need help with python, just PM.
-Arigato

Starting notice: I'm terrible at all things detail/logistics related -- including Python (which is why I haven't gotten past the first two pages of the tutorial; I zone out a lot due to a pathetic work ethic). Hooowwweever, I'm always up for trying my hand at theory. In this case, would it work to utilize some sort of argument based on *If X Then Y*? If username is entered and rings true, move on to password entering -- if password is entered and rings true in accordance to the username, then et cetera...?

At least, that's the simplest thing I can think of...probably because I'm a simpleton to start. If you --likely-- already tried that, apologies for wasting your time, twas only trying to help (Aka: I am newb, plz don't bash me).
  • Character Name: Shingen Kajahara
.   .   .   .   .   .   .Valued Virtues.   .   .   .   .   .
  ~{Empathy, Confidence, Wisdom and Wit}~
.   .   .   .   .   .   .~~~~~~~~~.   .   .   .   .   .

 

Recent Topics

Uzumaki Clan by LethalDarkness4
March 14, 2022, 23:07:32

My Computer Freezes While Playing 'Shinobi Life Online' by Jamezoar
March 13, 2022, 17:04:23

Crashed when I log in by WeebyJay
November 02, 2021, 00:38:43

The Lie That Never Lived: Shionbi Life Online by Ken
October 26, 2021, 00:28:55

OC by Hikaru_Kitetsu
September 30, 2021, 17:29:28

I suggest we can do genjutsus by NinjaMirage
September 28, 2021, 13:01:13

Hug,slap,kiss or kill - Fourm game. by MarkKlaus3
September 17, 2021, 12:59:31

Unable To Hide Online Status From Xbox! by EfrainSawayn
September 16, 2021, 07:45:04

I suggest that we can customize our character and we can belong to a clan by raruto
August 18, 2021, 22:54:15

I suggest that we can have a biju stamp like naruto and that we can become biju by raruto
August 18, 2021, 22:53:10

Top Posters

Mars
Posts: 2648
Reminance
Posts: 2246
Shivraj
Posts: 1610
m4r1us
Posts: 1298
Manuster
Posts: 1271
NinjaMirage
Posts: 1173
Nova
Posts: 1152
taigakun
Posts: 1099
Fraudulent
Posts: 1098
Konohuro
Posts: 1060