Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
thaisserpac
EncoderDecoder
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
EncoderDecoder
/
EncoderDecoder.txt
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
30 lines (25 loc) · 1.46 KB
main
Breadcrumbs
EncoderDecoder
/
EncoderDecoder.txt
Copy path
Top
File metadata and controls
Code
Blame
30 lines (25 loc) · 1.46 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
EncoderDecoder.txt
========================================
ProgramInfo
This program encodes a plain-text file and writes the encoded form of that
file out to a second (output) file. Or, it decodes a previously-encoded
file and writes the plain-text form of the file out to an output file.
The program takes three command-line parameters:
1. The first command-line parameter must be either the single character 'e'
to indicate that the input file contains plain text to be encoded, or the
single character 'd' to indicate that the input file contains encoded text
to be decoded. Note that this input character must be given in lower case.
2. The second command-line parameter must be the name of the input file.
3. The third command-line parameter must be the name of the output file.
If either file is not located in the current directory, the full path to the
file may be included with the file name.
The program performs the following error checking:
- It checks to make sure the first input parameter is either 'e' or 'd'.
- It checks that the input and output files can be opened.
- It checks that no line in a file to be encoded has length > 72 characters.
If any check fails, a suitable message is displayed, followed by a pause,
after which the program terminates.
Screen 1 of 1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
----------------------------------------
========================================
You can’t perform that action at this time.