cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
Win Forms - Open as a File or Stream
Win Forms - Open as a File or Stream
Sep 7, 2016 at 10:37pm UTC
OldPCGuy
(4)
So with the OpenFileDialog component I can open the file as a File, or a Stream.
For reading and parsing text files which is generally preferred?
Sep 8, 2016 at 8:25am UTC
Thomas1965
(4571)
Actually the OpenFileDialog gives you only the filename(s). To open a file you can use the System::IO::File class.
https://msdn.microsoft.com/en-us/library/system.io.file(v=vs.110).aspx?cs-save-lang=1&cs-lang=cpp#code-snippet-1
How to process the file depends on the format of the file.
Topic archived. No new replies allowed.