From: sto.mar@... Date: 2013-01-12T22:58:44+09:00 Subject: Re: How to take information from a text file and add them to an array Am 12.01.2013 14:32, schrieb Adam Kennedy: > Awesome thanks guys. Yeah my file is stored like: > password1 > password2 > password3 > > So I need to split it using the \n? > so the my_array adds all the information into an array then I can run a > function like If password == my_array blah blah... > then delete it afterwards? > > Sorry if that sounds confusing :) > > Adam K passwords = ['password', '12345', 'abcde'] passwords.include?('12345') # => true passwords.include?('hello') # => false --