CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2004
    Posts
    104

    Notepad Save Process

    Hi all,

    We have a weird issue at work, where Biztalk is failing to process large text files. If I open the file in notepad.exe and simply re-save it, then everything is fine. At first we thought it was an encoding issue, so I wrote a program to save save the file in any encoding type and that doesn't seem to fix the problem, so I see two alternatives.

    1. Does anyone know exactly how notepad.exe saves files? I could then simply write an app to do the same.

    2. Can I write an app that runs notepad, opens a given file and resaves it?

    Any help is appreciated.

    C

  2. #2
    Join Date
    May 2009
    Location
    Bengaluru, India
    Posts
    460

    Re: Notepad Save Process

    what is Biztalk ? Is it a editor just like notepad ?

    For your second question , there should some APIs in C# where you can open other applications like notepad - you need to using the corresponding namespaces of Notepad before that.

  3. #3
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Notepad Save Process

    Quote Originally Posted by vcdebugger View Post
    what is Biztalk ? Is it a editor just like notepad ?

    For your second question , there should some APIs in C# where you can open other applications like notepad - you need to using the corresponding namespaces of Notepad before that.
    This is completely wrong. If you don't know the answer, please don't respond. It isn't fair to the OP to get incorrect advice.

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Notepad Save Process

    Quote Originally Posted by scathenC View Post
    Hi all,

    We have a weird issue at work, where Biztalk is failing to process large text files. If I open the file in notepad.exe and simply re-save it, then everything is fine. At first we thought it was an encoding issue, so I wrote a program to save save the file in any encoding type and that doesn't seem to fix the problem, so I see two alternatives.

    1. Does anyone know exactly how notepad.exe saves files? I could then simply write an app to do the same.

    2. Can I write an app that runs notepad, opens a given file and resaves it?

    Any help is appreciated.

    C
    How is Biztalk picking up the file? Is a built-in workflow or custom adapter. Does it work again if you were to recopy the file into the source folder?

  5. #5
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: Notepad Save Process

    Quote Originally Posted by vcdebugger View Post
    what is Biztalk ? Is it a editor just like notepad ?
    Here is some info on BizTalk :

    http://www.microsoft.com/biztalk/en/us/default.aspx

    http://en.wikipedia.org/wiki/Microsoft_BizTalk_Server

    http://www.microsoft.com/biztalk/en/us/overview.aspx


    Quote Originally Posted by Arjay View Post
    This is completely wrong. If you don't know the answer, please don't respond. It isn't fair to the OP to get incorrect advice.
    He was just trying to help

  6. #6
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Notepad Save Process

    Quote Originally Posted by HanneSThEGreaT View Post
    He was just trying to help
    Understood and that may have come out harsher than intended. I believe it's important that folks respond when they are pretty sure of the answer; otherwise, it's easy to lead folks down the wrong path (which can be a waste of time and frustrating to the OP).

  7. #7
    Join Date
    May 2009
    Location
    Bengaluru, India
    Posts
    460

    Talking Re: Notepad Save Process

    Quote Originally Posted by Arjay View Post
    This is completely wrong. If you don't know the answer, please don't respond. It isn't fair to the OP to get incorrect advice.


    Sorry, That was just my guess as I am from VC++ background so thought of putting forward it.I wont respond hereafterwards if I dont know exactly.

  8. #8
    Join Date
    May 2009
    Location
    Bengaluru, India
    Posts
    460

    Re: Notepad Save Process

    Thanks HanneSThEGreaT for the links.

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

Featured