FilePutObject assistance, please
-
Hi ... i need a little help, please. This code works fine, but i'd like to convert it to use FilePutObject. Private Structure myFriend Public name As String Public age As Integer End Structure … Dim friendFileName As String = "R:\MyFriends.txt" FileOpen(1, friendFileName, OpenMode.Binary) Dim aFriend As myFriend ' Create a friend object aFriend.name = "Laura" aFriend.age = 29 FilePut(1, aFriend) ' Write entire structure to the hard drive What would be the FilePutObject equivalent of the last statement (above)? FilePutObject(1, aFriend) … does not do it Thanks.
-
Hi ... i need a little help, please. This code works fine, but i'd like to convert it to use FilePutObject. Private Structure myFriend Public name As String Public age As Integer End Structure … Dim friendFileName As String = "R:\MyFriends.txt" FileOpen(1, friendFileName, OpenMode.Binary) Dim aFriend As myFriend ' Create a friend object aFriend.name = "Laura" aFriend.age = 29 FilePut(1, aFriend) ' Write entire structure to the hard drive What would be the FilePutObject equivalent of the last statement (above)? FilePutObject(1, aFriend) … does not do it Thanks.