CLR C++ Datei Laden

in cpp •  7 years ago  (edited)

Hier ein Beispielcode, wie man in C++ mit einer CLR anwedung eine Datei laden kann. Realisiert wird dies durch die Benutzung des openFileDialog sowie eines Stream's und dazugehörigem StreamReader.
Den Filter für Dateien habe ich auf Text Dateien gestellt. Als andere Option wird auch "All files" geboten, wodurch alle dateien sichtbar sind. Meine Textbox auf der Form trägt den Namen "txtBX_EinAus".

Die Namensräume

Das Event an sich

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @der-schlitzer! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

Click here to view your Board

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @der-schlitzer! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!