473,770 Members | 2,144 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Output text file End of File Error 62

4 New Member
Hi, I apologize if this question has been asked already. I have searched with no luck. I am trying to output a specifically formatted text file and then change the extension to another program type:

outputting .txt changing to .dva (DVDAuthorGUI cue file).

The .txt output format looks the same as a DVDAuthorGUI created file, but when I try to open the file in DVDAuthroGUI, I get an END OF FILE Error 62. I must be missing something in my code... Here is what I have:

Expand|Select|Wrap|Line Numbers
  1. string text = "DVDAuthorGUI 1.017 - 2/16/2009\n" +
  2.                "C:\\Documents and Settings\\Administrator\\Desktop\\hey.mpg\n" +                               
  3.                "C:\\Documents and Settings\\Administrator\\Desktop\\trial.mpg\n" +                 
  4.                "C:\\Documents and Settings\\Administrator\\Desktop\\trial1.mpg\n" +
  5.                "***\n" +
  6.                "00:00:00.00\n" +
  7.                "00:00:00.00\n" +
  8.                "00:00:00.00\n" +
  9.                "***\n" +
  10.                "0\n" +
  11.                "0\n" +
  12.                "0\n" +
  13.                "***\n" +
  14.                "***\n" +
  15.                "***\n" +
  16.                "***\n" +
  17.                "***\n" +
  18.                "***\n" +
  19.                "<none>\n" +
  20.                "<none>\n" +
  21.                "<none>\n" +
  22.                "***\n" +
  23.                          "center,bottom,60,60,30,30,28.0,arial.ttf,720,478,29.97,ISO-8859-1,FFFFFF:A0A0A0:808080|\n" +
  24.                            "center,bottom,60,60,30,30,28.0,arial.ttf,720,478,29.97,ISO-8859-1,FFFFFF:A0A0A0:808080|\n" +
  25.                            "center,bottom,60,60,30,30,28.0,arial.ttf,720,478,29.97,ISO-8859-1,FFFFFF:A0A0A0:808080|\n" +
  26.                 "***\n" +
  27.                 "<default>\n" +
  28.                 "NTSC\n" +
  29.                 "True\n" +
  30.                 "False\n";
  31.  
  32. System.IO.File.WriteAllText(@"C:\Documents and Settings\Administrator\Desktop\trial.dva", text);  
Thank you for any help you can give me.

Dan
Sep 13 '09 #1
7 2790
tlhintoq
3,525 Recognized Expert Specialist
The .txt output format looks the same as a DVDAuthorGUI created file,
Looks the same... Using what program to read it? If the file contains some non-text characters, binary data etc and you are trying to read it with a simple text editor then those non-text items are most likely getting stripped away.

Personally I would write a little routine to read the source file as a stream of bytes and then compare a 'real' file to one of your manufactured files byte by byte.
Sep 13 '09 #2
tlhintoq
3,525 Recognized Expert Specialist
TIP: When you are writing your question, there is a button on the tool bar that wraps the [code] tags around your copy/pasted code. It helps a bunch. Its the button with a '#' on it. More on tags. They're cool. Check'em out.
Sep 13 '09 #3
dlbuller
4 New Member
Yeah, I was using a simple text editor to compare the files. Hmm, i don't think I would know how to do your suggestion but I will look into it. Thank you. Thanks for the tip too.
Sep 13 '09 #4
liquid217
2 New Member
If you could send me your sample dva file, I can debug it for you. My email address in on DVDAuthorGUI's Homepage.
Sep 13 '09 #5
dlbuller
4 New Member
Thanks! I'll do that, I appreciate it!
Sep 13 '09 #6
liquid217
2 New Member
Actually, I was just looking over what you had written. You probably need to send an \r\n, instead of just \n. If this doesn't help you, again, feel free to email your sample file.
Sep 13 '09 #7
dlbuller
4 New Member
wow, i feel dumb! Thanks a lot! That worked great!!!
Sep 13 '09 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

4
1982
by: rossum | last post by:
I have been looking at exceptions as I need to get better at using them. I came across an interesting effect, demonstrated below. When I ctrl-Z the input to throw an ios_base::failure, the first line of output from cout is lost, even if I clear() and flush(). The only way I have found to get the first line to appear is to put a newline at the start. It seems to be ignoring everything up to and including the first newline.
6
4267
by: Wescotte | last post by:
I'm writing a tiny php app that will log into our bank of america account and retrieve a file containing a list of checks that cleared the previous day. The problem I'm running into is when I perform actions with php/CURL the output is different than when I use IE and I'm completely stumped as to why. The final output should list files available for retrieval but the CURL output displays an error/empty file message. Here is the curl...
3
4907
by: Jorge Cecílio | last post by:
Hi! I would like to export some MS-Access reports output to pdf. However, the only possibility offered by Access (afaik) for me to export formatted output is snp (snapshot) (I use MS-Office XP Prof. 2002 version). With formatted output I mean the *exactly* output I produce from executing my report (information is gathered from an ODBC database).
3
2043
by: Blankdraw | last post by:
I'm getting NO errors and 2 warnings with this code. I thought I was ready to write the output-formatting segment, but may be way off the mark now. The warnings say that "OPEN() and READ() are undeclared - assuming an external is returning integer values." This is not the source of the problem. Step-Thru causes the system to demand the location of system-sounding files like: CHKSTK.ASM, CRT0.C, READ.C. With no real debugger...
6
4930
by: Alec MacLean | last post by:
Hi, I've created a small application for our company extranet (staff bulletins) that outputs a list of links to PDF's that are stored in a SQL table. The user clicks a link and the PDF is loaded into a new browser window. This works as expected on the test PC (using forms authentication, but no SSL) using IE. It also works as expected on the production server when using FireFox. The production server environment is using forms...
14
2682
by: dawnerd | last post by:
Hi, I am developing a CMS and came across something which has never happened to me before, and I re-wrote the specific script twice, both differently, and still had the same error. I'm not sure if it is apache, or php, or just an error I am not seeing. here is the code: <?php /** * Loop through the resultset
4
13386
by: ed | last post by:
Hi all, I'm very new to vb (2nd day) and I need to create a small app that will replace my old batch file with a flashy gui. I had some experience with access 2.0 which helps ;) What I would like is to get the output of the batch file to display on the gui as the batch file is running. if some of you understand unix... I want this: tail -f /var/log/messages
6
1939
by: cfish | last post by:
I'm trying to script my contact page and I have everything the way I want it however I cannot get my script to output Address, City, State, Zip & Phone Number when I get a email. It will output email address, subject & message. Please help! /* BELLonline PHP MAILER SCRIPT v1.4 Copyright 2006 Gavin Bell http://www.bellonline.co.uk gavin@bellonline.co.uk modified by Craig Fisher for Dakota Portraits - 1-30-2006 */
19
2649
by: Chad | last post by:
Okay, let's say I have an exotic os that limits how much goes to stdout. When I go like.. #include <stdio.h> int main(void) { int i=0; for(i=0; i< 10; i++) { printf("a \n");
11
2936
by: JRough | last post by:
I'm trying to use output buffering to cheat so i can print to excel which is called later than this header(). header("Content-type: application/xmsdownload"); header("Content-Disposition: attachment; header("Pragma: no-cache"); header("Expires; 0"); print "$header\n$data";
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10260
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10101
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9906
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6712
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.