Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Login and register from txt file using java | fun with java #1

Автор: RAPIDCLICKS (RAPIDCLICKS)

Загружено: 2019-06-13

Просмотров: 61215

Описание:

This video basically an implementation to write in txt (text) file and retrieve its data in a formal way. Enjoy :)

Got stuck somewhere?
Download the source code: https://github.com/Nilesh-d/TextLogin


Explanation
8:13
addData :
1) Fetch file
2) skip no. of lines already exists
3) write batch files

(you should skip checkData, it only work for single batch of data)

22:27
logic:

working:
1)loop through each data batch
2)check user and password if match, then print found and exit
3)if last data batch then print not found and exit
4)skip lines that are not username and password i.e email, blank line,etc.

1) increments = number of data in single batch
exp: loop through no. of data batches

2) check for incorrect user = increments - 1
exp: check if current batch is the last batch of entire document and no user and password matched.

3) lines to skip = k = increments - data lines other than user and password
exp: we need only user and password to check and skip other lines of single batch

variables values need to be adjusted:
i+= [increments] (no. of data batch)
ln-[increments - 1] (no. of lines inside each batch - 1)
k till= [k] (no. of lines to skip)

batch example:(no. of lines inside each batch should be equal)
---------------------
Username:youtube
password:pass
email:mail@mail.com

Username:stack
password:overflow
email:stack@mail.com
----------------------

no. of data batches = 2
no. of lines inside each batch (4) - 1 = 3 (except last batch,including blank line)
no. of lines to skip = 2 (except last batch, including blank line)



audio credit: www.bensound.com

Login and register from txt file using java | fun with java #1

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

how to create login GUI using text file as a database for validation in java login data in text file

how to create login GUI using text file as a database for validation in java login data in text file

Create Login And Register Using MySQL DB in java

Create Login And Register Using MySQL DB in java

Java Tutorial | How to make User Registration Form with text files | Part 3 |Writing in File

Java Tutorial | How to make User Registration Form with text files | Part 3 |Writing in File

Java + Selenium tutorial: downloading all images from Google Images | Fun with java

Java + Selenium tutorial: downloading all images from Google Images | Fun with java

Typst: Современная замена Word и LaTeX, которую ждали 40 лет

Typst: Современная замена Word и LaTeX, которую ждали 40 лет

Как взломать любое программное обеспечение

Как взломать любое программное обеспечение

Сисадмины больше не нужны? Gemini настраивает Linux сервер и устанавливает cтек N8N. ЭТО ЗАКОННО?

Сисадмины больше не нужны? Gemini настраивает Linux сервер и устанавливает cтек N8N. ЭТО ЗАКОННО?

ДАМПЫ В JAVA на практике, разбираем проблемы

ДАМПЫ В JAVA на практике, разбираем проблемы

Как сжимаются изображения? [46 МБ ↘↘ 4,07 МБ] JPEG в деталях

Как сжимаются изображения? [46 МБ ↘↘ 4,07 МБ] JPEG в деталях

Java Project Tutorial - Login and Register Form Step by Step Using NetBeans And MySQL with FREE Code

Java Project Tutorial - Login and Register Form Step by Step Using NetBeans And MySQL with FREE Code

Что такое Rest API (http)? Soap? GraphQL? Websockets? RPC (gRPC, tRPC). Клиент - сервер. Вся теория

Что такое Rest API (http)? Soap? GraphQL? Websockets? RPC (gRPC, tRPC). Клиент - сервер. Вся теория

Программирование на ассемблере без операционной системы

Программирование на ассемблере без операционной системы

C# Project Tutorial - Make Login and Register Form Step by Step Using C# And Text File

C# Project Tutorial - Make Login and Register Form Step by Step Using C# And Text File

Филипп Робертс: Что за чертовщина такая event loop? | JSConf EU 2014

Филипп Робертс: Что за чертовщина такая event loop? | JSConf EU 2014

КАК УСТРОЕН TCP/IP?

КАК УСТРОЕН TCP/IP?

The Windows 11 Disaster That's Killing Microsoft

The Windows 11 Disaster That's Killing Microsoft

Ошибки наследования

Ошибки наследования

Выучите R за 39 минут

Выучите R за 39 минут

Понимание Active Directory и групповой политики

Понимание Active Directory и групповой политики

Java Swing Tutorial: 1. Intro to Java Swing Components and JFrame Sample Program. | Tagalog

Java Swing Tutorial: 1. Intro to Java Swing Components and JFrame Sample Program. | Tagalog

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com