TWiki
>
P1076 Web
>
VHDL2017
>
LCS2016_006e
>
LCS2016_006e_Examples
(2017-05-03,
RobGaddi
)
(raw view)
E
dit
A
ttach
---+ Language Change Specification Examples for Environment API <pre> -- Check a configuration file in the user's home directory use std.env.all; use std.textio.all; impure function GetConfig return boolean is file config : text; variable home, data : line; variable result : boolean; begin home := GETENV("HOME"); assert home /= null report "No HOME environment variable"; FILE_OPEN(config, home.all & DIR_SEPARATOR & ".config" & DIR_SEPARATOR & "myapp.txt", read_mode ); READ_LINE(config, data); READ(data, result); FILE_CLOSE(config); return result; end function GetConfig; <br /><br /> </pre> -- %USERSIG{RobGaddi - 2017-05-03}% ---++ Comments %COMMENT%
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2017-05-03 - 05:13:54 -
RobGaddi
P1076
Log In
or
Register
P1076 Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
Webs
Main
P1076
Ballots
LCS2016_080
P10761
P1647
P16661
P1685
P1734
P1735
P1778
P1800
P1801
Sandbox
TWiki
VIP
VerilogAMS
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback