.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
Post a Comment