<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hola.<br>
Quisiera saber si es posible pasar esa información directamente a una
variable en memoria o algo por el estilo. <br>
Pretendo leer un fichero dentro de un directorio, para ello quiero
lista para comprobar si el directorio buscado se encuentra en la torre
actual. Ademas no tengo permiso de  escritura  en dicha torre por lo
que no puedo crear el fichero *.txt.<br>
Dices mas abajo que se puede obtener la  'ultima l'inea,  puedes
decirme como. <br>
Por si de algo sirve lo estoy intentando con Borland c++ 3.1<br>
De antemano muchas gracias.<br>
<blockquote
 cite="mid:b49143940807102125v6a2b2c20md8d3f7bf79ee8dd1@mail.gmail.com"
 type="cite">
  <pre wrap="">En realidad no hay nada más frustrante que hablar y que nadie te
escuche, pero tal como te indicaron no hay funciones que hagan tal
cosa en C/C++ en las bibliotecas standard.

Yo he utilizado otras veces las funciones propias del sistema
operativo, en el cual me encuentro operando. Para ello he usado la
funcion "system()" del C; con ella se puede ejecutar desde el
programa, un comando de sistema operativo. Siendo así en DOS se puede
ejecutar un "dir" ejemplo:

system("dir *.*");

La ejecución del comando te listará el directorio. Si deseas guardar
el resultado en un archivo, puedes ejecutar un:

system("dir *.* > archivo.txt");

Este comando dejaria el resultado en el archivo llamado "archivo.txt".

En DOS se podria obtener al última línea que arroja "el comando dos
dir", que me parece recordar tiene la cantidad de archivos
desplegados.

No es muy elegante talvés, pero funciona !

Saludos

Hugo Gutierrez Salazar
Ing. Comp. e Inf.

  </pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<div class="moz-signature">
<div class="moz-signature">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="ProgId" content="Word.Document">
<meta name="Generator" content="Microsoft Word 11">
<meta name="Originator" content="Microsoft Word 11">
<link rel="File-List"
 href="Firma3%28SobreProblemas%29_archivos/filelist.xml">
<title></title>
<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Author>ymabreu</o:Author>
  <o:Template>Normal</o:Template>
  <o:LastAuthor>ymabreu</o:LastAuthor>
  <o:Revision>2</o:Revision>
  <o:TotalTime>11</o:TotalTime>
  <o:Created>2008-06-27T19:26:00Z</o:Created>
  <o:LastSaved>2008-06-27T19:26:00Z</o:LastSaved>
  <o:Pages>1</o:Pages>
  <o:Words>14</o:Words>
  <o:Characters>81</o:Characters>
  <o:Company>Windows uE</o:Company>
  <o:Lines>1</o:Lines>
  <o:Paragraphs>1</o:Paragraphs>
  <o:CharactersWithSpaces>94</o:CharactersWithSpaces>
  <o:Version>11.5606</o:Version>
 </o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:HyphenationZone>21</w:HyphenationZone>
  <w:PunctuationKerning/>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysS
howPlaceholderText>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
 </w:LatentStyles>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Monotype Corsiva";
        panose-1:3 1 1 1 1 2 1 1 1 1;
        mso-font-charset:0;
        mso-generic-font-family:script;
        mso-font-pitch:variable;
        mso-font-signature:647 0 0 0 159 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Courier New";
        mso-fareast-font-family:"Times New Roman";}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;
        mso-header-margin:35.4pt;
        mso-footer-margin:35.4pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 10]>
<style>
 /* Style Definitions */
 table.MsoNormalTable
        {mso-style-name:"Tabla normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";
        mso-ansi-language:#0400;
        mso-fareast-language:#0400;
        mso-bidi-language:#0400;}
</style>
<![endif]-->
<div class="Section1">
<pre><i><span
 style="font-size: 18pt; font-family: "Monotype Corsiva"; color: rgb(0, 0, 153);"><span
 style=""> </span>“Si un problema tiene solución, ¿Por qué te preocupas?<o:p></o:p></span></i></pre>
<pre><i><span
 style="font-size: 18pt; font-family: "Monotype Corsiva"; color: rgb(0, 0, 153);">Y si no tiene, ¿Por qué preocuparse?”</span></i><span
 style="font-size: 18pt; font-family: "Monotype Corsiva";"><o:p></o:p></span></pre>
<p class="MsoNormal"><i><span
 style="font-size: 20pt; font-family: "Monotype Corsiva";"><o:p> </o:p></span></i></p>
</div>
</div>
</div>
</div>
</body>
</html>