.net - How to write singles() to a file -


for debugging purposes need write array of single() new file don't find example. since trying debug something, don't want trust own instincts on how that. can show me?

is correct way? afraid might have introduced error.

public sub writesinglestofile(byval usingles() single, byval upath string)      using fs new filestream(upath, filemode.create)         using bw new binarywriter(fs)             each no in usingles                 bw.write(no)             next         end using     end using  end sub 

you can use binarywriter.write method write singles

public sub writesinglestofile(byval usingles() single, byval upath string)     using writer io.binarywriter = new io.binarywriter(io.file.open(upath, io.filemode.create))         each uval single in usingles              writer.write(uval)         next     end using  end sub 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -