Liberty BASIC Community Forum
« File size/ encryption »

Welcome Guest. Please Login or Register.
Sep 20th, 2017, 10:27pm


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 poll_icon  Poll  Poll Question: Will this take up a lot of diskspace?
No it won't. VotesImageVotes 0 (0%)
Yes it will. VotesImageVotes 0 (0%)
It would but the space is still negligable. VotesImageVotes 0 (0%)
Total votes: 0  
 thread  Author  Topic: File size/ encryption  (Read 211 times)
tommarch
New Member
Image


member is offline

Avatar




PM


Posts: 5
xx File size/ encryption
« Thread started on: Mar 26th, 2017, 06:43am »

So i have managed to create liberty basic code that will get the asc number for each character in a word, sentence, or paragraph, perform operations on that number and print them to a file. My program will then, read the file, reverse the operations, and print them to the mainwin, in the text form that they originally were entered as. This can stop people from simply opening a file in notepad, that you might want to keep private. However each character is stored in the file, one asc character number per line. Does this take up more memory than if many asc numbers were stored per line. And is there anything about this code that. could negatively affect my computer or what have you? Also, whats a poll question?
User IP Logged

Rod
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Graphics = goosebumps!


PM

Gender: Male
Posts: 5526
xx Re: File size/ encryption
« Reply #1 on: Mar 26th, 2017, 10:14am »

Click on new thread rather than poll question. Discussions about code are called threads on Conforums.

If you simply print each character to the file Liberty will be adding a CRLF pair, that is Carriage Return Line Feed. They are control characters that cause the system printing or displaying your file to move down a line and back to the left edge. Its a standard Windows thing.

To suppress these extra characters put a ; after your print line. So print #file, a$; The ; stops Liberty adding the CRLF pair.

But then you will have never ending text, you might want to let the CRLF pair be added at the end of a word or sentence.

So you are storing three characters for every encrypted character. You can cut that down with ;

Even as you have it set up now it will have little impact on your PC. Hard discs are huge these days.
« Last Edit: Mar 26th, 2017, 10:15am by Rod » User IP Logged

tommarch
New Member
Image


member is offline

Avatar




PM


Posts: 5
xx Re: File size/ encryption
« Reply #2 on: Mar 26th, 2017, 10:39am »

Thankyou. Sorry about my poor posting etiquette 😊.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls