.net 4.5 - System.IO.File missing an assembly reference -
i'm trying read text file using system.io.file.readalllines-method error pops saying
the type or namespace 'file' not exist in namespace 'system.io' (are missing assembly reference?
i'm working .net framework 4.5 , vs2012.
first go solution explorer , expand references , check whether system assembly there in list.
if don't have there, right click references , click add reference , .net tab, add together system assembly
now should have system in references list.
now can import namespace system.io
using system.io; note file class in namespace system.io
so utilize file class in code follows.
file f = new file();//or whatever i know lastly line sufficient set downwards whole thing completion. ;)
file .net-4.5 .net
No comments:
Post a Comment