Results 1 to 23 of 23

Thread: File IO help!

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2012
    Posts
    46

    File IO help!

    So I am using this to put information into a file:

    Code:
        Dim Stub, text1, text2, PW As String
        Const FileSplit = "@#$%SWAGDAYZ%$#@"
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    
            Dim Input As String = Nothing
            Dim q As String = FileSplit
    
            text1 = TextBox1.Text
    
            text2 = Encrypt(TextBox2.Text, TextBox3.Text)
    
            TextBox3.Text = text2
    
            PW = TextBox3.Text
    
            Input = Stub & q & text1 & q & text2 & q & PW
    
            FileOpen(1, Application.StartupPath & "\Stub.exe", OpenMode.Binary, OpenAccess.Read, OpenShare.Default)
            Stub = Space(LOF(1))
            FileGet(1, Stub)
            FileClose(1)
    
            If File.Exists(Application.StartupPath + "\Server.exe") Then
                My.Computer.FileSystem.DeleteFile(Application.StartupPath + "\Server.exe")
            End If
    
            FileOpen(1, Application.StartupPath & "\Stub.exe", OpenMode.Binary, OpenAccess.ReadWrite, OpenShare.Default)
            FilePut(1, Input)
            FileClose(1)
            MsgBox("Server made successfully", MsgBoxStyle.OkOnly, "Success")
        End Sub

    And this to pull it from that file and use the information:
    Code:
        Dim stub, text1, text2, PW As String
        Dim user, pass As String
        Const FileSplit = "@#$%SWAGDAYZ%$#@"
        Dim options() As String
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    
            Me.ShowInTaskbar = False
    
            FileOpen(1, Application.ExecutablePath, OpenMode.Binary, OpenAccess.ReadWrite, OpenShare.Default)
            text1 = Space(LOF(1))
            text2 = Space(LOF(1))
            PW = Space(LOF(1))
            FileGet(1, text1) ' options(1)
            FileGet(1, text2) ' options(2)
            FileGet(1, PW) 'options(3)
            FileClose(1)
    
            options = Split(text1, FileSplit)
    
            passBox.Text = text1
    
            'options = text1.Split(FileSplit)
    
            'text2 = Decrypt(text2, PW)
    
            'passBox.Text = text2
    
            'Check1()
    
        End Sub
    I am getting so much fail it hurts. Can you guys look over it and tell me how to fix it?

  2. #2
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: File IO help!

    Ugg that is so ugly. We don't do files like that anymore. We use serializable classes. Describe what it is you want to do in detail and lets start from scratch with a proper and easy to maintain method.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2012
    Posts
    46

    Re: File IO help!

    I have a program. It has a textbox. I need it to open a file, put the information in the file. Then it needs to be able to (when you open that file) take the information put in the file, and put it into a textbox in the second program. There are 3 textboxes it needs to do this for.

  4. #4
    Hyperactive Member Vladamir's Avatar
    Join Date
    Feb 2012
    Location
    Miami, FL
    Posts
    486

    Re: File IO help!

    I think I can see what you want but your directions are not clear. When you say "into a textbox in the second program" are you referring to another textbox or another textbox in another form...or as you say, another textbox in another program.

    I would look at using StreamReader and StreamWriter classes for this. Granted that reading and writing to text files is not as easy as it use to be in the old QBASIC days, but if you look at these methods you should find what you're looking for.

  5. #5

    Thread Starter
    Member
    Join Date
    Sep 2012
    Posts
    46

    Re: File IO help!

    Ok, here is how it goes. 100% literal. 1st Program:

    Text1 = TextBox1.Text
    Text2 = TextBox2.Text
    PW = TextBox3.Text

    I need this to open a file(Stub.exe), put Text1, Text2, and PW into that file, then make a new files using stub.exe with the Text1, Text2, and PW inside it. When the new file open, it needs to pull this information.
    So I can do this in the second program:
    TextBox1.Text = Text1
    TextBox2.Text = Text2
    TextBox3.Text = PW

    When I say program, I mean a .exe program. Not another Form.

  6. #6
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: File IO help!

    OMG I almost forgot about this. Sorry about that.....Anyways:-
    vbnet Code:
    1. Imports System.Runtime.Serialization.Formatters.Binary
    2. Imports System.IO
    3.  
    4. Public Class Form1
    5.  
    6.     Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
    7.  
    8.     End Sub
    9.  
    10.     Private Sub btnSave_Click(sender As System.Object, e As System.EventArgs) Handles btnSave.Click
    11.         'We save our data by placing the data
    12.         'into this object
    13.         Dim info As New PersonInfo
    14.         Dim bf As New BinaryFormatter
    15.  
    16.         'Create or trucate a file to save the data and opens
    17.         'it for writing
    18.         Dim fs As New FileStream("c:\PersonInfo.bin", FileMode.Create, FileAccess.Write)
    19.  
    20.         'We put our information from the TextBoxes
    21.         'into the PersonInfo object
    22.         info.Name = txtName.Text
    23.         info.Age = nudAge.Value
    24.         info.Address = txtAddr.Text
    25.  
    26.         'Writes the data into the FileStream using the object
    27.         bf.Serialize(fs, info)
    28.  
    29.  
    30.         'Writes the information to the file on disk
    31.         'and closes the stream
    32.         fs.Close()
    33.  
    34.     End Sub
    35.  
    36.     Private Sub btnLoad_Click(sender As System.Object, e As System.EventArgs) Handles btnLoad.Click
    37.         'Open the file
    38.         Dim fs As New FileStream("C:\PersonInfo.bin", FileMode.OpenOrCreate, FileAccess.Read)
    39.  
    40.         Dim bf As New BinaryFormatter
    41.  
    42.         'Get the information from the file which
    43.         'would be placed into a PersonInfo object
    44.         Dim info As PersonInfo = DirectCast(bf.Deserialize(fs), PersonInfo)
    45.  
    46.         'Put the data in the PersonInfo object
    47.         'into the TextBoxes
    48.         txtAddr.Text = info.Address
    49.         txtName.Text = info.Name
    50.         nudAge.Value = info.Age
    51.  
    52.         'Close the file
    53.         fs.Close()
    54.     End Sub
    55.  
    56.  
    57.     'Required by the Windows Form Designer
    58.     Private components As System.ComponentModel.IContainer
    59.  
    60.     'NOTE: The following procedure is required by the Windows Form Designer
    61.     'It can be modified using the Windows Form Designer.  
    62.     'Do not modify it using the code editor.
    63.     <System.Diagnostics.DebuggerStepThrough()> _
    64.     Private Sub InitializeComponent()
    65.         Me.Label1 = New System.Windows.Forms.Label()
    66.         Me.Label2 = New System.Windows.Forms.Label()
    67.         Me.Label3 = New System.Windows.Forms.Label()
    68.         Me.txtName = New System.Windows.Forms.TextBox()
    69.         Me.nudAge = New System.Windows.Forms.NumericUpDown()
    70.         Me.txtAddr = New System.Windows.Forms.TextBox()
    71.         Me.btnSave = New System.Windows.Forms.Button()
    72.         Me.btnLoad = New System.Windows.Forms.Button()
    73.         CType(Me.nudAge, System.ComponentModel.ISupportInitialize).BeginInit()
    74.         Me.SuspendLayout()
    75.         '
    76.         'Label1
    77.         '
    78.         Me.Label1.AutoSize = True
    79.         Me.Label1.Location = New System.Drawing.Point(12, 9)
    80.         Me.Label1.Name = "Label1"
    81.         Me.Label1.Size = New System.Drawing.Size(35, 13)
    82.         Me.Label1.TabIndex = 0
    83.         Me.Label1.Text = "Name"
    84.         '
    85.         'Label2
    86.         '
    87.         Me.Label2.AutoSize = True
    88.         Me.Label2.Location = New System.Drawing.Point(12, 100)
    89.         Me.Label2.Name = "Label2"
    90.         Me.Label2.Size = New System.Drawing.Size(45, 13)
    91.         Me.Label2.TabIndex = 1
    92.         Me.Label2.Text = "Address"
    93.         '
    94.         'Label3
    95.         '
    96.         Me.Label3.AutoSize = True
    97.         Me.Label3.Location = New System.Drawing.Point(12, 56)
    98.         Me.Label3.Name = "Label3"
    99.         Me.Label3.Size = New System.Drawing.Size(26, 13)
    100.         Me.Label3.TabIndex = 2
    101.         Me.Label3.Text = "Age"
    102.         '
    103.         'txtName
    104.         '
    105.         Me.txtName.Location = New System.Drawing.Point(63, 6)
    106.         Me.txtName.Name = "txtName"
    107.         Me.txtName.Size = New System.Drawing.Size(195, 20)
    108.         Me.txtName.TabIndex = 3
    109.         '
    110.         'nudAge
    111.         '
    112.         Me.nudAge.Location = New System.Drawing.Point(63, 54)
    113.         Me.nudAge.Name = "nudAge"
    114.         Me.nudAge.Size = New System.Drawing.Size(70, 20)
    115.         Me.nudAge.TabIndex = 4
    116.         '
    117.         'txtAddr
    118.         '
    119.         Me.txtAddr.Location = New System.Drawing.Point(63, 97)
    120.         Me.txtAddr.Name = "txtAddr"
    121.         Me.txtAddr.Size = New System.Drawing.Size(195, 20)
    122.         Me.txtAddr.TabIndex = 5
    123.         '
    124.         'btnSave
    125.         '
    126.         Me.btnSave.Location = New System.Drawing.Point(15, 137)
    127.         Me.btnSave.Name = "btnSave"
    128.         Me.btnSave.Size = New System.Drawing.Size(86, 32)
    129.         Me.btnSave.TabIndex = 6
    130.         Me.btnSave.Text = "Save"
    131.         Me.btnSave.UseVisualStyleBackColor = True
    132.         '
    133.         'btnLoad
    134.         '
    135.         Me.btnLoad.Location = New System.Drawing.Point(107, 137)
    136.         Me.btnLoad.Name = "btnLoad"
    137.         Me.btnLoad.Size = New System.Drawing.Size(86, 32)
    138.         Me.btnLoad.TabIndex = 7
    139.         Me.btnLoad.Text = "Load"
    140.         Me.btnLoad.UseVisualStyleBackColor = True
    141.         '
    142.         'Form1
    143.         '
    144.         Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
    145.         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
    146.         Me.ClientSize = New System.Drawing.Size(297, 181)
    147.         Me.Controls.Add(Me.btnLoad)
    148.         Me.Controls.Add(Me.btnSave)
    149.         Me.Controls.Add(Me.txtAddr)
    150.         Me.Controls.Add(Me.nudAge)
    151.         Me.Controls.Add(Me.txtName)
    152.         Me.Controls.Add(Me.Label3)
    153.         Me.Controls.Add(Me.Label2)
    154.         Me.Controls.Add(Me.Label1)
    155.         Me.Name = "Form1"
    156.         Me.Text = "Form1"
    157.         CType(Me.nudAge, System.ComponentModel.ISupportInitialize).EndInit()
    158.         Me.ResumeLayout(False)
    159.         Me.PerformLayout()
    160.  
    161.     End Sub
    162.     Friend WithEvents Label1 As System.Windows.Forms.Label
    163.     Friend WithEvents Label2 As System.Windows.Forms.Label
    164.     Friend WithEvents Label3 As System.Windows.Forms.Label
    165.     Friend WithEvents txtName As System.Windows.Forms.TextBox
    166.     Friend WithEvents nudAge As System.Windows.Forms.NumericUpDown
    167.     Friend WithEvents txtAddr As System.Windows.Forms.TextBox
    168.     Friend WithEvents btnSave As System.Windows.Forms.Button
    169.     Friend WithEvents btnLoad As System.Windows.Forms.Button
    170.  
    171. End Class
    172.  
    173. 'The Serializable attribute marks a file as
    174. 'serializable
    175. <Serializable()> _
    176. Public Class PersonInfo
    177.     Public Property Name As String
    178.     Public Property Address As String
    179.     Public Property Age As Integer
    180. End Class

    Create a new Windows Forms project overwrite Form1's code with the above and run it. It demonstrates how to save to, and load from, a file.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  7. #7

    Thread Starter
    Member
    Join Date
    Sep 2012
    Posts
    46

    Re: File IO help!

    I think you may be able to help me better 1on1. Can you add me on Skype? I'm at school now, but I will be home at 5. My username is DestrohGFX

  8. #8
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: File IO help!

    Err....have you at least tried it ? That code only looks complicated. That's only because I included all the code for putting the controls on the Form but the meat of it is only this:-
    vbnet Code:
    1. '
    2.      Private Sub btnSave_Click(sender As System.Object, e As System.EventArgs) Handles btnSave.Click
    3.         'We save our data by placing the data
    4.         'into this object
    5.         Dim info As New PersonInfo
    6.         Dim bf As New BinaryFormatter
    7.  
    8.         'Create or trucate a file to save the data and opens
    9.         'it for writing
    10.         Dim fs As New FileStream("c:\PersonInfo.bin", FileMode.Create, FileAccess.Write)
    11.  
    12.         'We put our information from the TextBoxes
    13.         'into the PersonInfo object
    14.         info.Name = txtName.Text
    15.         info.Age = nudAge.Value
    16.         info.Address = txtAddr.Text
    17.  
    18.         'Writes the data into the FileStream using the object
    19.         bf.Serialize(fs, info)
    20.  
    21.  
    22.         'Writes the information to the file on disk
    23.         'and closes the stream
    24.         fs.Close()
    25.  
    26.     End Sub
    27.  
    28.     Private Sub btnLoad_Click(sender As System.Object, e As System.EventArgs) Handles btnLoad.Click
    29.         'Open the file
    30.         Dim fs As New FileStream("C:\PersonInfo.bin", FileMode.OpenOrCreate, FileAccess.Read)
    31.  
    32.         Dim bf As New BinaryFormatter
    33.  
    34.         'Get the information from the file which
    35.         'would be placed into a PersonInfo object
    36.         Dim info As PersonInfo = DirectCast(bf.Deserialize(fs), PersonInfo)
    37.  
    38.         'Put the data in the PersonInfo object
    39.         'into the TextBoxes
    40.         txtAddr.Text = info.Address
    41.         txtName.Text = info.Name
    42.         nudAge.Value = info.Age
    43.  
    44.         'Close the file
    45.         fs.Close()
    46.     End Sub

    And this class:-
    vbnet Code:
    1. 'The Serializable attribute marks a file as
    2. 'serializable
    3. <Serializable()> _
    4. Public Class PersonInfo
    5.     Public Property Name As String
    6.     Public Property Address As String
    7.     Public Property Age As Integer
    8. End Class
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  9. #9
    Hyperactive Member Vladamir's Avatar
    Join Date
    Feb 2012
    Location
    Miami, FL
    Posts
    486

    Re: File IO help!

    DesignLife,

    We'd like to help you. That's what this forum is all about. But what you're describing here is really off-the-wall.

    First off, you can create a text file and give it an .exe extension, although why you'd want to do that is unknown. If you give a file an .exe extension, your operating system will treat it in a certain way when you go access it. On the other hand, if you're actually wanting to insert text into an exe file, then now you're talking about a binary insertion of data into an existing file, which again is not what we really think you want.

    It does sound like what you need is some one-on-one tutoring for this to better explain your requirements. Believe me there are plenty of people on this forum who can help you. The task you want sounds simple enough but what you're explaining takes it off into another area of programming.

    If I've misinterpreted your intentions, I apologize. And I see from your original post that perhaps you are trying to write binary data to an exe file. But exe files are usually not the place to store data...not usually.
    Last edited by Vladamir; Apr 10th, 2013 at 11:13 AM.

  10. #10
    Lively Member CheeseWiZ's Avatar
    Join Date
    Mar 2013
    Posts
    71

    Re: File IO help!

    Hi Niya,

    Serialization is brand new to me, and I'm interested in this topic. So, I went ahead and practiced a run of your serialization coding. It gave me an exception more advanced then I can understand for this line in the BtnSave method:

    Code:
    bf.Serialize(fs, info)  <--------
    
    SerializationException was unhandled: Type 'WindowsApplication1.Personinfo' in Assembly 'WindowsApplication1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable."
    Would you help me understand what happened? The entire sub was copied verbatum, and I also have a Public Class for Personinfo with the necessary properties.

  11. #11
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: File IO help!

    Are you sure you copied everything ?:-
    vbnet Code:
    1. '
    2.     'The Serializable attribute marks a type as
    3.     'serializable
    4.     <Serializable()> _
    5.     Public Class PersonInfo
    6.         Public Property Name As String
    7.         Public Property Address As String
    8.         Public Property Age As Integer
    9.     End Class

    That error indicates that you may not have copied the Serializable attribute atop the PersonInfo class.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  12. #12
    Bad man! ident's Avatar
    Join Date
    Mar 2009
    Location
    Cambridge
    Posts
    5,401

    Re: File IO help!

    Niya i am pretty sure i have seen this user posting to make a keylogger just look at the exe name stub.exe also. DesignLife this forum does not help in black hat activities.

  13. #13
    Lively Member CheeseWiZ's Avatar
    Join Date
    Mar 2013
    Posts
    71

    Re: File IO help!

    Quote Originally Posted by Niya View Post
    That error indicates that you may not have copied the Serializable attribute atop the PersonInfo class.
    You're right. I missed that line! Works like a charm.

    I don't quite understand it's full purpose yet, or when I would utilize this. It's still nice to know. Seems like it works like an encoder/decoder.

    Rep +1!

  14. #14
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,104

    Re: File IO help!

    This whole thread would make a lot more sense if it was Stub.txt rather than Stub.exe. It sounds like a rather typical dead-drop transfer of information from one program to another where one writes a textfile and another reads it. That bit about writing to an .exe is bizarre, but it could also just be a typo. Frankly, I would say that the key question is whether or not both programs are expected to be running at the same time, as there are solutions that don't involve files to that problem.
    My usual boring signature: Nothing

  15. #15
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: File IO help!

    Quote Originally Posted by ident View Post
    Niya i am pretty sure i have seen this user posting to make a keylogger just look at the exe name stub.exe also. DesignLife this forum does not help in black hat activities.
    Well...he can't hack an EXE using the code I posted so its not a total loss.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  16. #16
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: File IO help!

    Writing stuff to the end of an EXE file is an old common trick for all things nasty and it wont work because anti-virus applications will mark it as a virus.

    I want you to tell us exactly what your up to and why you want to do this. If you have legit reasons to do what you want there might be a better way of doing it and people here can provide you with more information about it. However if you're trying to create something like a keylogger you wont get any help from our members since it goes against all we believe in when it comes to what software should be doing.

    Before you have replied with an answer and a full description on what you want to create I hereby formally ask, as a moderator, that nobody else replies to this question.

  17. #17

    Thread Starter
    Member
    Join Date
    Sep 2012
    Posts
    46

    Re: File IO help!

    The reason I am looking into this is simply to experiment. I have no set goal other then to learn the code better in all aspects.

  18. #18
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: File IO help!

    I'm sorry but that explanation just doesn't cut it. Why do you want to learn how to create malicious software? Why not learn how to create useful software instead?

  19. #19

    Thread Starter
    Member
    Join Date
    Sep 2012
    Posts
    46

    Re: File IO help!

    I never said I was using it maliciously, I simply said I wish to learn the code better. I will admit I am using the source code to a crypter, but I am using it to learn.

  20. #20
    Bad man! ident's Avatar
    Join Date
    Mar 2009
    Location
    Cambridge
    Posts
    5,401

    Re: File IO help!

    Quote Originally Posted by DesignLife View Post
    I never said I was using it maliciously

  21. #21
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: File IO help!

    lol....hand in the cookie jar and all that
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  22. #22
    Fanatic Member Arve K.'s Avatar
    Join Date
    Sep 2008
    Location
    Kyrksæterøra, Norway
    Posts
    518

    Re: File IO help!

    Name:  kelso-burn.jpg
Views: 144
Size:  12.6 KB
    Arve K.

    Please mark your thread as resolved and add reputation to those who helped you solve your problem
    Disclaimer: I am not a professional programmer

  23. #23
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: File IO help!

    Quote Originally Posted by DesignLife View Post
    I never said I was using it maliciously, I simply said I wish to learn the code better.
    If you want to learn to code better then don't try to change a compiled EXE file because that is never good programming. Since you've posted the exact same question in another forum, admitting that you tried to create a keylogger and I've given you the opportunity to explain exactly what you wanted to do which you declined to do, I'm going to close this thread. Please become a better coder by coding something that is productive instead of things that aren't.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width